Code
cookbook/models/langdb/research_agent.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
from agno.agent import Agent
from agno.models.langdb import LangDB
from agno.tools.duckduckgo import DuckDuckGoTools
agent = Agent(
model=LangDB(id="gpt-4o-mini"),
tools=[
DuckDuckGoTools(
search=True, news=True
)
],
show_tool_calls=True,
description="You are a research analyst that investigates topics and helps users find comprehensive information.",
instructions=["Use tables to display data where possible."],
markdown=True,
)
agent.print_response("What are the latest developments in AI technology?", stream=True)
Create a virtual environment
Terminal and create a python virtual environment.python3 -m venv .venv
source .venv/bin/activate
Was this page helpful?