Renzo commited on
Commit
1bcef24
·
1 Parent(s): 81917a3

Update requirements.txt to include agno and openai packages

Browse files
Files changed (3) hide show
  1. .gitignore +3 -0
  2. agent.py +19 -0
  3. requirements.txt +3 -1
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ .venv
2
+ .idea
3
+ .env
agent.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from agno.agent import Agent, RunResponse
2
+ from agno.models.openai import OpenAIChat
3
+ from agno.playground import Playground, serve_playground_app
4
+ from agno.tools.reasoning import ReasoningTools
5
+
6
+ test_question = "On June 6, 2023, an article by Carolyn Collins Petersen was published in Universe Today. This article mentions a team that produced a paper about their observations, linked at the bottom of the article. Find this paper. Under what NASA award number was the work performed by R. G. Arendt supported by?"
7
+
8
+ agent = Agent(
9
+ model=OpenAIChat(id="gpt-4.1-nano"),
10
+ markdown=True,
11
+ debug_mode=True,
12
+ instructions="Respond only the exact answer, do not explain how you arrived at the answer.",
13
+ tools=[
14
+ ReasoningTools(think=True, add_few_shot=True),
15
+ ],
16
+ )
17
+
18
+ # Print the response in the terminal
19
+ agent.print_response("Waht is greater 9.9 or 9.11?", strem=True)
requirements.txt CHANGED
@@ -1,2 +1,4 @@
1
  gradio
2
- requests
 
 
 
1
  gradio
2
+ requests
3
+ agno
4
+ openai