diff --git a/models/data_types.py b/models/data_types.py index 6f331a1..39b9357 100644 --- a/models/data_types.py +++ b/models/data_types.py @@ -17,7 +17,7 @@ class CombinedInput: Message = Dict[str, Union[str, Dict[str, Any]]] ConversationHistory = Dict[str, List[Message]] -NextStep = Literal["confirm", "question", "done"] +NextStep = Literal["confirm", "question", "pick-new-goal", "done"] @dataclass diff --git a/prompts/agent_prompt_generators.py b/prompts/agent_prompt_generators.py index 8a001f3..4ce9194 100644 --- a/prompts/agent_prompt_generators.py +++ b/prompts/agent_prompt_generators.py @@ -68,7 +68,7 @@ def generate_genai_prompt( "Your JSON format must be:\n" "{\n" ' "response": "",\n' - ' "next": "",\n' + ' "next": "",\n' ' "tool": "",\n' ' "args": {\n' ' "": "",\n' @@ -123,7 +123,7 @@ def generate_tool_completion_prompt(current_tool: str, dynamic_result: dict) -> f"### The '{current_tool}' tool completed successfully with {dynamic_result}. " "INSTRUCTIONS: Parse this tool result as plain text, and use the system prompt containing the list of tools in sequence and the conversation history (and previous tool_results) to figure out next steps, if any. " "You will need to use the tool_results to auto-fill arguments for subsequent tools and also to figure out if all tools have been run. " - '{"next": "", "tool": "", "args": {"": "", "": "}, "response": ""}' + '{"next": "", "tool": "", "args": {"": "", "": "}, "response": ""}' "ONLY return those json keys (next, tool, args, response), nothing else. " 'Next should be "question" if the tool is not the last one in the sequence. ' 'Next should only be "pick-new-goal" if all tools have been run (use the system prompt to figure that out).' diff --git a/tools/tool_registry.py b/tools/tool_registry.py index 7a08b3b..f80aa8b 100644 --- a/tools/tool_registry.py +++ b/tools/tool_registry.py @@ -3,13 +3,7 @@ from models.tool_definitions import ToolDefinition, ToolArgument list_agents_tool = ToolDefinition( name="ListAgents", description="List available agents to interact with, pulled from goal_registry. ", - arguments=[ - ToolArgument( - name="userConfirmation", - type="string", - description="dummy variable to make thing work", - ), - ], + arguments=[], ) change_goal_tool = ToolDefinition(