How astronaut-08/autonomous_agent_design works
This repository contains two restaurant-menu agent designs: a ReAct agent that answers menu and ordering questions, and a plan/execute agent that plans multi-step tasks and can pause risky actions for human approval. The primary workflow is request → model decision → tools → formatted response; the second design adds planning, execution, and replanning. The tree and excerpts also show a separate knowledge-search capability. Some subsystem wiring is unsampled, so those relationships are omitted rather than inferred.
Main entry points: agent.py Agent Runtime · plan_execute.py Plan Execute Graph · hw2_plan_execute/tools.py Task Tools · hw1_react_agent/tools.py Menu Tools
Components 14
ReAct Menu Agent
- Agent Runtime
hw1_react_agent/agent.py - Run Safety
hw1_react_agent/safety.py - Trajectory Logger
hw1_react_agent/logger.py - Response Formatter
hw1_react_agent/agent.py
Menu Domain
- Menu Tools
hw1_react_agent/tools.py - Menu Data
hw1_react_agent/menu_data.py - Menu Data
hw2_plan_execute/menu_data.py
Plan Execute
- Plan Execute Graph
hw2_plan_execute/plan_execute.py - Input Schemas
hw2_plan_execute/schema.py - Task Tools
hw2_plan_execute/tools.py - Knowledge Search
hw2_plan_execute/knowledge.py - Approval Executor
hw2_plan_execute/hitl.py
Other components
- User
- Approving Operator
Connections 12
- User → Agent Runtime: submits request
hw1_react_agent/agent.py - Agent Runtime → Menu Tools: dispatches calls
hw1_react_agent/agent.py - Menu Tools → Menu Data: reads menu
hw1_react_agent/tools.py - Agent Runtime → Run Safety: checks limits
hw1_react_agent/agent.py - Agent Runtime → Trajectory Logger: logs steps
hw1_react_agent/agent.py - Agent Runtime → Response Formatter: routes response
hw1_react_agent/agent.py - User → Plan Execute Graph: submits task
hw2_plan_execute/plan_execute.py - Plan Execute Graph → Input Schemas: uses schemas
hw2_plan_execute/schema.py - Plan Execute Graph → Task Tools: invokes tools
hw2_plan_execute/plan_execute.py - Task Tools → Menu Data: reads menu
hw2_plan_execute/tools.py - Approving Operator → Approval Executor: approves action
hw2_plan_execute/hitl.py - Approval Executor → Task Tools: executes approved tool
hw2_plan_execute/hitl.py