feat: implement final_answer tool and enhance agent duration tracking
- Introduced the final_answer tool to ensure agents submit their complete responses as the last action, improving response accuracy and consistency. - Updated the agent engine to log detailed information about tool calls and responses, including the total duration of agent execution. - Enhanced the chat message model to include agent_duration_ms, tracking the total execution time from query start to answer delivery. - Implemented JSON field extraction for streaming responses, allowing for more efficient handling of tool call outputs. These changes significantly improve the agent's response handling and ensure that final answers are consistently delivered, enhancing overall user experience.
This commit is contained in:
@@ -266,6 +266,8 @@ export default {
|
||||
webSearchFound: 'Found <strong>{count}</strong> web search result(s)',
|
||||
argumentsLabel: 'Arguments',
|
||||
toolFallback: 'Tool',
|
||||
stepsCompleted: 'Completed <strong>{steps}</strong> step(s)',
|
||||
stepsCompletedWithDuration: 'Completed <strong>{steps}</strong> step(s) in <strong>{duration}</strong>',
|
||||
title: 'Agents',
|
||||
subtitle: 'Configure and manage your agents to customize conversation behavior and capabilities',
|
||||
createAgent: 'Create Agent',
|
||||
|
||||
@@ -917,6 +917,8 @@ export default {
|
||||
webSearchFound: "<strong>{count}</strong>개의 웹 검색 결과 발견",
|
||||
argumentsLabel: "파라미터",
|
||||
toolFallback: "도구",
|
||||
stepsCompleted: "<strong>{steps}</strong>개 단계 완료",
|
||||
stepsCompletedWithDuration: "<strong>{steps}</strong>개 단계 완료, 소요 시간 <strong>{duration}</strong>",
|
||||
title: "에이전트",
|
||||
subtitle: "에이전트 구성 및 관리, 대화 동작 및 기능 맞춤화",
|
||||
createAgent: "에이전트 만들기",
|
||||
|
||||
@@ -256,6 +256,8 @@ export default {
|
||||
webSearchFound: 'Найдено <strong>{count}</strong> результатов веб‑поиска',
|
||||
argumentsLabel: 'Параметры',
|
||||
toolFallback: 'Инструмент',
|
||||
stepsCompleted: 'Выполнено <strong>{steps}</strong> шаг(ов)',
|
||||
stepsCompletedWithDuration: 'Выполнено <strong>{steps}</strong> шаг(ов) за <strong>{duration}</strong>',
|
||||
editor: {
|
||||
skillsConfig: 'Skills',
|
||||
skillsConfigDesc: 'Настройка предустановленных Skills для агента, предоставляющих специализированные знания и рабочие процессы',
|
||||
|
||||
@@ -910,6 +910,8 @@ export default {
|
||||
webSearchFound: "找到 <strong>{count}</strong> 个网络搜索结果",
|
||||
argumentsLabel: "参数",
|
||||
toolFallback: "工具",
|
||||
stepsCompleted: "已完成 <strong>{steps}</strong> 个步骤",
|
||||
stepsCompletedWithDuration: "已完成 <strong>{steps}</strong> 个步骤,耗时 <strong>{duration}</strong>",
|
||||
title: "智能体",
|
||||
subtitle: "配置和管理您的智能体,自定义对话行为和能力",
|
||||
createAgent: "创建智能体",
|
||||
|
||||
Reference in New Issue
Block a user