Putting it together
A research team whose members have tools, memory, and document knowledge — then served over HTTP.
from neuroagent import Agent, Team, TeamMember, tool
@tool
def web_search(query: str) -> str:
"""Search the web for up-to-date information."""
...
researcher = Agent(provider="openai", tools=[web_search], rag=True, memory="sqlite")
researcher.load_document("internal_strategy.pdf")
writer = Agent(provider="anthropic", system_prompt="You write crisp executive summaries.")
reviewer = Agent(provider="openai", system_prompt="You fact-check and tighten prose.")
team = Team(
[
TeamMember("researcher", researcher, "gathers internal + web context"),
TeamMember("writer", writer, "drafts the summary"),
TeamMember("reviewer", reviewer, "reviews for accuracy"),
],
pattern="pipeline",
)
print(team.run("Brief the board on our AI strategy vs. competitors.").content)
Runnable scripts
All offline (no API key needed) — live in examples/ on GitHub:
quickstart.py
First agent, tools, the echo provider
memory_chat.py
Multi-turn recall with SQLite memory
rag_quickstart.py
Load documents, ask grounded questions
database_agent.py
Natural language → SQL
workflow_pipeline.py
DAG of dependent agent steps
team_collaboration.py
Pipeline pattern across three agents
observability_cost.py
Traces, stats, cost tracking
enterprise_security.py
RBAC, audit log, sandbox, secrets
serve_agent.py
Deploy an agent as a FastAPI app
python examples/quickstart.py
NeuroAgent AI