yao/agent/assistant
Max a686483f15 Implement tool call retry logic in Assistant's streaming process
- Enhanced the Stream method to include a retry mechanism for tool calls, allowing for up to three attempts in case of errors.
- Introduced detailed logging for each retry attempt, improving traceability and debugging capabilities.
- Added a new method, buildToolRetryMessages, to construct messages for LLM retries, ensuring proper context is maintained.
- Updated the executeLLMForToolRetry method to handle streaming output during retries, providing real-time feedback to users.
- Improved error handling to differentiate between retryable and non-retryable errors, enhancing the robustness of tool call executions.
2025-11-29 12:44:37 +08:00
..
handlers Refactor message handling to support individual message lifecycle events 2025-11-26 19:03:47 +08:00
hook Refactor Assistant streaming logic and remove MCP hook 2025-11-29 09:13:18 +08:00
agent.go Implement tool call retry logic in Assistant's streaming process 2025-11-29 12:44:37 +08:00
agent_interrupt_test.go Enhance state management with safeSend method to prevent panics on closed channels 2025-11-26 19:45:22 +08:00
api.go Refactor connector settings to model capabilities 2025-11-17 09:45:54 +08:00
assistant.go Refactor MCP server configuration and enhance Assistant functionality 2025-11-29 10:04:19 +08:00
build.go Enhance Assistant's message building and completion options handling 2025-11-29 11:08:42 +08:00
build_mcp_test.go Enhance Assistant's message building and completion options handling 2025-11-29 11:08:42 +08:00
build_test.go Remove deprecated agent_test.go and mcp package files; refactor context and trace handling for improved functionality. 2025-11-28 19:26:33 +08:00
cache.go ⚠️ BREAKING: Removed the Studio package and renamed Neo to Agent. Configuration file path changed from neo/neo.yml to agent/agent.yml. 2025-11-06 18:13:54 +08:00
cache_test.go Refactor to decouple attachments, RAG, and AI assistant components. 2025-11-06 19:09:44 +08:00
call.go Refactor context handling in agent API and assistant methods 2025-11-10 17:30:53 +08:00
history.go Refactor MCP server configuration and enhance Assistant functionality 2025-11-29 10:04:19 +08:00
hooks.go ⚠️ BREAKING: Removed the Studio package and renamed Neo to Agent. Configuration file path changed from neo/neo.yml to agent/agent.yml. 2025-11-06 18:13:54 +08:00
llm.go Implement tool call retry logic in Assistant's streaming process 2025-11-29 12:44:37 +08:00
load.go Refactor connector settings to model capabilities 2025-11-17 09:45:54 +08:00
load_test.go Refactor to decouple attachments, RAG, and AI assistant components. 2025-11-06 19:09:44 +08:00
mcp.go Implement tool call retry logic in Assistant's streaming process 2025-11-29 12:44:37 +08:00
mcp_test.go Enhance Assistant's message building and completion options handling 2025-11-29 11:08:42 +08:00
object.go Refactor context handling in agent API and assistant methods 2025-11-10 17:30:53 +08:00
plan.go ⚠️ BREAKING: Removed the Studio package and renamed Neo to Agent. Configuration file path changed from neo/neo.yml to agent/agent.yml. 2025-11-06 18:13:54 +08:00
tool.go Refactor store imports and update store initialization logic 2025-11-07 18:27:43 +08:00
trace.go Implement tool call retry logic in Assistant's streaming process 2025-11-29 12:44:37 +08:00
types.go Implement tool call retry logic in Assistant's streaming process 2025-11-29 12:44:37 +08:00
utils.go Refactor assistant handling and storage integration 2025-11-07 11:20:59 +08:00