feat: Implement context and follow-up queries for agent interactions and enhance simple chat command with quiet mode support

This commit is contained in:
scawful
2025-10-04 03:49:40 -04:00
parent 2a6f7d5c15
commit 9ab2d2bde8
6 changed files with 90 additions and 43 deletions

View File

@@ -0,0 +1,15 @@
# Test 1: Context and Follow-up Queries
# The agent should use the 'resource-list' tool.
What dungeons are defined in this ROM?
# The agent must use the context from the previous answer to identify "the first one"
# and then call the 'dungeon-list-sprites' tool for that specific room.
Tell me about the sprites in the first dungeon listed.
# The agent must remember the room from the previous query and use the 'overworld-list-warps' tool.
Are there any warp points in that same room?
# This is a complex reasoning test. The agent needs to synthesize information
# from the last two tool calls (sprite list and warp list) to answer.
Is there a soldier sprite located near any of the warp points in that room?

View File

@@ -28,16 +28,16 @@ You must follow this exact two-step process to avoid errors.
*Example Step 1:*
```json
{
"text_response": "Let me look up the dungeons for you...",
"text_response": "Let me look up the rooms for you...",
"tool_calls": [
{
"tool_name": "resource_list",
"tool_name": "resource-list",
"args": {
"type": "dungeon"
"type": "room"
}
}
],
"reasoning": "The user is asking for a list of dungeons. I need to call the `resource_list` tool with the type 'dungeon' to get this information."
"reasoning": "The user is asking for a list of rooms. I need to call the `resource-list` tool with the type 'room' to get this information."
}
```
@@ -49,8 +49,8 @@ You must follow this exact two-step process to avoid errors.
*Example Step 2:*
```json
{
"text_response": "This ROM contains 12 dungeons, including: Hyrule Castle, Eastern Palace, and Desert Palace.",
"reasoning": "I have received the list of dungeons from the tool result. I will now format this information into a friendly, readable response for the user."
"text_response": "This ROM contains 297 rooms, including: Ganon, Hyrule Castle (North Corridor), and Behind Sanctuary (Switch).",
"reasoning": "I have received the list of rooms from the tool result. I will now format this information into a friendly, readable response for the user."
}
```