perederei commited on
Commit
9cbec15
·
verified ·
1 Parent(s): 9a8c112

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -16,6 +16,9 @@ def my_cutom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
 
 
 
19
  return "What magic will you build ?"
20
 
21
  @tool
@@ -48,10 +51,11 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
48
 
49
  with open("prompts.yaml", 'r') as stream:
50
  prompt_templates = yaml.safe_load(stream)
 
51
 
52
  agent = CodeAgent(
53
  model=model,
54
- tools=[final_answer], ## add your tools here (don't remove final answer)
55
  max_steps=6,
56
  verbosity_level=1,
57
  grammar=None,
 
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
19
+
20
+ localConfluencePage
21
+
22
  return "What magic will you build ?"
23
 
24
  @tool
 
51
 
52
  with open("prompts.yaml", 'r') as stream:
53
  prompt_templates = yaml.safe_load(stream)
54
+
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[DuckDuckGoSearchTool, image_generation_tool ,final_answer],
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,