Leonardo Kamigauti commited on
Commit
e70e03d
·
1 Parent(s): f34a8bc

Simplify tool calling agent

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -93,16 +93,12 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
93
  with open("prompts.yaml", 'r') as stream:
94
  prompt_templates = yaml.safe_load(stream)
95
 
96
- conversional_agent = ToolCallingAgent(model=model,
 
97
  tools=[user_input],
98
  max_steps=6,
99
- verbosity_level=1,
100
- grammar=None,
101
- planning_interval=0,
102
  name='ask_question',
103
  description='Ask a question to the user and get the answer',
104
- prompt_templates=prompt_templates,
105
- add_base_tools=True,
106
  )
107
 
108
  agent = CodeAgent(
 
93
  with open("prompts.yaml", 'r') as stream:
94
  prompt_templates = yaml.safe_load(stream)
95
 
96
+ conversional_agent = ToolCallingAgent(
97
+ model=model,
98
  tools=[user_input],
99
  max_steps=6,
 
 
 
100
  name='ask_question',
101
  description='Ask a question to the user and get the answer',
 
 
102
  )
103
 
104
  agent = CodeAgent(