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