refactor(agent): remove final_answer tool references and update related logic
- Eliminated all instances of the final_answer tool from the agent's configuration and logic, transitioning to a model where the agent concludes responses with plain text instead. - Updated event handling and response analysis to reflect this change, ensuring that the agent's output is now directly delivered as text without relying on a dedicated final answer tool. - Adjusted localization strings across multiple languages to remove references to final_answer, enhancing clarity and consistency in user-facing messages. - Improved the overall structure of the agent's response handling to streamline the process and reduce potential confusion regarding tool usage. refactor(agent): streamline answer handling and preamble logic - Updated the agent's response handling to treat any text streamed before a tool call as a preamble, ensuring it is not included in the final answer. - Removed the superseded marker logic from the event emission process, simplifying the flow of answer content and enhancing clarity in the UI. - Adjusted the event handling to ensure that preamble segments are correctly retracted and relocated into the steps tree, improving the overall user experience. - Enhanced the agent's internal logic to better manage answer segments and their states during streaming, leading to a more coherent response structure.
This commit is contained in:
@@ -762,6 +762,10 @@ export default {
|
||||
toolFallback: 'Tool',
|
||||
stepsCompleted: 'Completed <strong>{steps}</strong> step(s)',
|
||||
stepsCompletedWithDuration: 'Completed <strong>{steps}</strong> step(s) in <strong>{duration}</strong>',
|
||||
reasoningRounds: '<strong>{rounds}</strong> reasoning round(s)',
|
||||
toolCalls: '<strong>{tools}</strong> tool call(s)',
|
||||
durationSuffix: '<strong>{duration}</strong>',
|
||||
stepSummarySeparator: ' · ',
|
||||
title: 'Agents',
|
||||
subtitle: 'Configure and manage your agents to customize conversation behavior and capabilities',
|
||||
createAgent: 'Create Agent',
|
||||
@@ -4525,7 +4529,6 @@ export default {
|
||||
thinking: 'Thinking',
|
||||
imageAnalysis: 'Image Analysis',
|
||||
queryKnowledgeGraph: 'Knowledge Graph Query',
|
||||
finalAnswer: 'Generate Answer',
|
||||
readSkill: 'Read Skill',
|
||||
executeSkillScript: 'Execute Skill Script',
|
||||
dataAnalysis: 'Data Analysis',
|
||||
@@ -4708,7 +4711,6 @@ export default {
|
||||
// Runtime system-injected tools (preview only)
|
||||
webSearch: 'Web Search',
|
||||
webFetch: 'Web Fetch',
|
||||
finalAnswer: 'Submit Final Answer',
|
||||
// Groups
|
||||
groupBase: 'Basic',
|
||||
groupRag: 'Knowledge Retrieval (RAG)',
|
||||
|
||||
Reference in New Issue
Block a user