Skip to content

Commit d0826d6

Browse files
Formatting changes
1 parent 48237b2 commit d0826d6

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

cookbook/examples/streamlit_apps/deep_researcher/agents.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

44
from agno.agent import Agent
55
from agno.models.nebius import Nebius
6-
7-
# from agno.tools.scrapegraph import ScrapeGraphTools
8-
from agno.tools.duckduckgo import DuckDuckGoTools
6+
from agno.tools.scrapegraph import ScrapeGraphTools
97
from agno.utils.log import logger
108
from agno.workflow import RunResponse, Workflow
119

@@ -19,10 +17,8 @@ class DeepResearcherAgent(Workflow):
1917
"""
2018

2119
searcher: Agent = Agent(
22-
tools=[DuckDuckGoTools()],
23-
model=Nebius(
24-
id="deepseek-ai/DeepSeek-V3-0324", api_key=os.getenv("NEBIUS_API_KEY")
25-
),
20+
tools=[ScrapeGraphTools()],
21+
model=Nebius(id="deepseek-ai/DeepSeek-V3-0324"),
2622
show_tool_calls=True,
2723
markdown=True,
2824
description=(
@@ -44,9 +40,7 @@ class DeepResearcherAgent(Workflow):
4440

4541
# Analyst: Synthesizes and interprets the research findings
4642
analyst: Agent = Agent(
47-
model=Nebius(
48-
id="deepseek-ai/DeepSeek-V3-0324", api_key=os.getenv("NEBIUS_API_KEY")
49-
),
43+
model=Nebius(id="deepseek-ai/DeepSeek-V3-0324"),
5044
markdown=True,
5145
description=(
5246
"You are AnalystBot-X, a critical thinker who synthesizes research findings "
@@ -68,9 +62,7 @@ class DeepResearcherAgent(Workflow):
6862

6963
# Writer: Produces a final, polished report
7064
writer: Agent = Agent(
71-
model=Nebius(
72-
id="deepseek-ai/DeepSeek-V3-0324", api_key=os.getenv("NEBIUS_API_KEY")
73-
),
65+
model=Nebius(id="deepseek-ai/DeepSeek-V3-0324"),
7466
markdown=True,
7567
description=(
7668
"You are WriterBot-X, a professional technical writer. Your job is to craft "

cookbook/examples/streamlit_apps/deep_researcher/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
st.divider()
7474

75-
# Chat management buttons
75+
# Chat management buttons
7676
col1, col2 = st.columns(2)
7777
with col1:
7878
if st.button("🆕 New Chat", use_container_width=True):
@@ -82,7 +82,7 @@
8282
with col2:
8383
if st.session_state.chat_history:
8484
markdown_content = "# 🔎 Deep Research Agent - Chat History\n\n"
85-
85+
8686
for i, conversation in enumerate(st.session_state.chat_history, 1):
8787
markdown_content += f"## {conversation['question']}\n\n"
8888
markdown_content += f"{conversation['response']}\n\n"

0 commit comments

Comments
 (0)