fix(web): agent‘s tools bugfix
This commit is contained in:
@@ -1265,6 +1265,7 @@ export const en = {
|
|||||||
emotionLine: 'Emotion Changes Over Time',
|
emotionLine: 'Emotion Changes Over Time',
|
||||||
interaction: 'Interaction Frequency & Relationship Stages',
|
interaction: 'Interaction Frequency & Relationship Stages',
|
||||||
timelines_memory: 'All',
|
timelines_memory: 'All',
|
||||||
|
Chunk: 'Chunk',
|
||||||
MemorySummary: 'Long-term Accumulation',
|
MemorySummary: 'Long-term Accumulation',
|
||||||
Statement: 'Emotional Memory',
|
Statement: 'Emotional Memory',
|
||||||
ExtractedEntity: 'Episodic Memory',
|
ExtractedEntity: 'Episodic Memory',
|
||||||
@@ -1786,6 +1787,9 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re
|
|||||||
temperature: 'Temperature',
|
temperature: 'Temperature',
|
||||||
max_tokens: 'Max Tokens',
|
max_tokens: 'Max Tokens',
|
||||||
context: 'Context',
|
context: 'Context',
|
||||||
|
memory: 'Memory',
|
||||||
|
enable_window: 'Memory Window',
|
||||||
|
inner: 'Built-in',
|
||||||
},
|
},
|
||||||
start: {
|
start: {
|
||||||
variables: 'Input Fields',
|
variables: 'Input Fields',
|
||||||
|
|||||||
@@ -1343,6 +1343,7 @@ export const zh = {
|
|||||||
emotionLine: '情绪随时间变化',
|
emotionLine: '情绪随时间变化',
|
||||||
interaction: '互动频率 & 关系阶段',
|
interaction: '互动频率 & 关系阶段',
|
||||||
timelines_memory: '全部',
|
timelines_memory: '全部',
|
||||||
|
Chunk: '工作记忆',
|
||||||
MemorySummary: '长期沉淀',
|
MemorySummary: '长期沉淀',
|
||||||
Statement: '情绪记忆',
|
Statement: '情绪记忆',
|
||||||
ExtractedEntity: '情景记忆',
|
ExtractedEntity: '情景记忆',
|
||||||
@@ -1883,6 +1884,9 @@ export const zh = {
|
|||||||
temperature: '温度',
|
temperature: '温度',
|
||||||
max_tokens: '最大令牌数',
|
max_tokens: '最大令牌数',
|
||||||
context: '上下文',
|
context: '上下文',
|
||||||
|
memory: '记忆',
|
||||||
|
enable_window: '记忆窗口',
|
||||||
|
inner: '内置',
|
||||||
},
|
},
|
||||||
start: {
|
start: {
|
||||||
variables: '输入字段',
|
variables: '输入字段',
|
||||||
|
|||||||
@@ -176,6 +176,9 @@ const Agent = forwardRef<AgentRef>((_props, ref) => {
|
|||||||
if (response?.knowledge_retrieval?.knowledge_bases?.length) {
|
if (response?.knowledge_retrieval?.knowledge_bases?.length) {
|
||||||
getDefaultKnowledgeList(response)
|
getDefaultKnowledgeList(response)
|
||||||
}
|
}
|
||||||
|
if (response?.tools?.length) {
|
||||||
|
setToolList(response?.tools)
|
||||||
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -79,8 +79,6 @@ const ToolList: FC<{ data: ToolOption[]; onUpdate: (config: ToolOption[]) => voi
|
|||||||
}
|
}
|
||||||
}, [data])
|
}, [data])
|
||||||
|
|
||||||
console.log('toolList', toolList)
|
|
||||||
|
|
||||||
const handleAddTool = () => {
|
const handleAddTool = () => {
|
||||||
toolModalRef.current?.handleOpen()
|
toolModalRef.current?.handleOpen()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user