Add ToolDispatcher for Enhanced Tool Call Management

- Introduced `ToolDispatcher` class to handle tool calls from the AI agent, allowing for dynamic execution of commands based on user requests.
- Updated `ConversationalAgentService` to integrate tool dispatching, enabling the agent to respond to tool calls and manage execution results.
- Enhanced `AgentResponse` structure to include a list of tool calls, facilitating communication between the AI and the tool dispatcher.
- Modified AI service implementations to parse and include tool calls in responses, improving the agent's interactive capabilities.

This commit significantly enhances the z3ed system's ability to manage and execute tool calls, paving the way for more complex interactions in ROM hacking.
This commit is contained in:
scawful
2025-10-03 12:47:15 -04:00
parent 208b9ade51
commit 7c2bf8e1c7
11 changed files with 156 additions and 2 deletions

View File

@@ -285,6 +285,7 @@ if(YAZE_WITH_GRPC)
${CMAKE_SOURCE_DIR}/src/cli/service/planning/tile16_proposal_generator.cc
${CMAKE_SOURCE_DIR}/src/cli/service/resources/resource_context_builder.cc
${CMAKE_SOURCE_DIR}/src/cli/service/resources/resource_catalog.cc
${CMAKE_SOURCE_DIR}/src/cli/service/agent/tool_dispatcher.cc
)
# Link gRPC libraries