feat(agent): implement core agent functionalities and context management

- Introduced the AgentEngine with methods for executing tool calls, managing context windows, and handling final answer generation.
- Added functionality to stream LLM responses and tool results through the EventBus, enhancing real-time interaction.
- Implemented context management to consolidate messages and prevent exceeding token limits, ensuring efficient use of context.
- Enhanced error handling and logging for tool execution and response analysis, improving robustness and traceability.
- Added unit tests to validate the new functionalities and ensure reliability in agent operations.
This commit is contained in:
wizardchen
2026-03-19 23:12:47 +08:00
committed by lyingbug
parent 2f7e3a8ac1
commit 637376428e
6 changed files with 1105 additions and 1014 deletions
+28 -1014
View File
File diff suppressed because it is too large Load Diff