Fix type error (#27250)

This commit is contained in:
GuanMu
2025-10-22 13:06:15 +08:00
committed by GitHub
parent 26ff59172e
commit 73e217ab0d
4 changed files with 34 additions and 4 deletions

View File

@@ -12,6 +12,9 @@ export const vars: VarInInspect[] = [
value_type: VarType.string,
value: 'text value...',
edited: false,
visible: true,
is_truncated: false,
full_content: { size_bytes: 0, download_url: '' },
},
{
id: 'fdklajljgldjglkagjlk',
@@ -22,6 +25,9 @@ export const vars: VarInInspect[] = [
value_type: VarType.string,
value: 'made zhizhang',
edited: false,
visible: true,
is_truncated: false,
full_content: { size_bytes: 0, download_url: '' },
},
]
@@ -35,6 +41,9 @@ export const conversationVars: VarInInspect[] = [
value_type: VarType.string,
value: 'conversation var value...',
edited: false,
visible: true,
is_truncated: false,
full_content: { size_bytes: 0, download_url: '' },
},
{
id: 'con2',
@@ -45,6 +54,9 @@ export const conversationVars: VarInInspect[] = [
value_type: VarType.number,
value: 456,
edited: false,
visible: true,
is_truncated: false,
full_content: { size_bytes: 0, download_url: '' },
},
]
@@ -58,6 +70,9 @@ export const systemVars: VarInInspect[] = [
value_type: VarType.string,
value: 'Hello robot!',
edited: false,
visible: true,
is_truncated: false,
full_content: { size_bytes: 0, download_url: '' },
},
{
id: 'sys2',
@@ -68,5 +83,8 @@ export const systemVars: VarInInspect[] = [
value_type: VarType.string,
value: 'djflakjerlkjdlksfjslakjsdfl',
edited: false,
visible: true,
is_truncated: false,
full_content: { size_bytes: 0, download_url: '' },
},
]

View File

@@ -21,5 +21,8 @@ export const outputToVarInInspect = ({
value_type: VarType.string, // TODO: wait for api or get from node
value,
edited: false,
visible: true,
is_truncated: false,
full_content: { size_bytes: 0, download_url: '' },
}
}