drAbreu commited on
Commit
016d20c
·
1 Parent(s): f208978

added instructions of minimal answers

Browse files
Files changed (1) hide show
  1. agents/llama_index_agent.py +10 -2
agents/llama_index_agent.py CHANGED
@@ -7,7 +7,7 @@ from tools.text_tools import reverse_text_tool
7
  from llama_index.llms.openai import OpenAI
8
  import os
9
 
10
- openai = OpenAI(model="gpt-4o-mini-high", api_key=os.getenv("OPENAI_API_KEY"))
11
 
12
  main_agent = ReActAgent(
13
  name="jefe",
@@ -42,7 +42,15 @@ main_agent = ReActAgent(
42
  You also have access to your own tools:
43
  * `reverse_text_tool` --> Reverses the input text
44
 
45
- Send as final answer your last answer formated as expected in the instructions of the question
 
 
 
 
 
 
 
 
46
  """,
47
  can_handoff_to=[
48
  "video_analyst",
 
7
  from llama_index.llms.openai import OpenAI
8
  import os
9
 
10
+ openai = OpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY"))
11
 
12
  main_agent = ReActAgent(
13
  name="jefe",
 
42
  You also have access to your own tools:
43
  * `reverse_text_tool` --> Reverses the input text
44
 
45
+ Send as final answer your last answer formated as expected in the instructions of the question.
46
+
47
+ IMPORTANT:
48
+ Answer ONLY the minimal text that is asked in the query. Not a single character more.
49
+
50
+ For example:
51
+
52
+ If you are asked for the first name of the discoverer of gravity, your answer should be: `Isaac`
53
+
54
  """,
55
  can_handoff_to=[
56
  "video_analyst",