schoginitoys commited on
Commit
54d422c
·
0 Parent(s):
.gitignore ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Env & secrets
2
+ .env
3
+ .env.*
4
+ # Node/Next
5
+ node_modules
6
+ .next
7
+ # Python
8
+ __pycache__/
9
+ # Docker crap
10
+ *.log
11
+ # OS junk
12
+ .DS_Store
13
+ Thumbs.db
14
+ venv/
15
+ .venv/
16
+ *.py[oc]
17
+ build/
18
+ dist/
19
+ wheels/
20
+ *.egg-info
cookbook-examples-gemini-3-research-agent.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from textwrap import dedent
2
+
3
+ from agno.agent import Agent
4
+ from agno.models.google import Gemini
5
+ from db import demo_db
6
+
7
+ from dotenv import load_dotenv
8
+ load_dotenv()
9
+
10
+ research_agent = Agent(
11
+ name="Research Agent",
12
+ model=Gemini(
13
+ id="gemini-3-pro-preview",
14
+ search=True,
15
+ ),
16
+ description="You are a research agent with access to the web. You can search the web and provide well-researched responses.",
17
+ instructions=dedent("""\
18
+ 1. Search the web and provide well-researched responses.
19
+
20
+ 2. With every response, you must:
21
+ - Include source citations with URLs when available.
22
+ - Distinguish facts from opinions.
23
+ - Note if information may be outdated.
24
+
25
+ 3. Start with a concise answer, then provide supporting details.
26
+
27
+ 4. Keep responses focused and scannable with clear headings.
28
+ """),
29
+ db=demo_db,
30
+ add_datetime_to_context=True,
31
+ add_history_to_context=True,
32
+ num_history_runs=3,
33
+ markdown=True,
34
+ )
35
+
36
+
37
+ if __name__ == "__main__":
38
+ research_agent.print_response(
39
+ "What are the latest breakthroughs in quantum computing this year?",
40
+ stream=True,
41
+ )
cookbook-examples-gemini-3-research-agent.txt ADDED
File without changes