20 lines
617 B
Python
20 lines
617 B
Python
from deepagents import create_deep_agent
|
|
|
|
|
|
def build_medium_agent(model, agent_tools: list, system_prompt: str):
|
|
"""Medium agent: create_deep_agent with TodoList planning, no subagents."""
|
|
return create_deep_agent(
|
|
model=model,
|
|
tools=agent_tools,
|
|
system_prompt=system_prompt,
|
|
)
|
|
|
|
|
|
def build_complex_agent(model, agent_tools: list, system_prompt: str):
|
|
"""Complex agent: direct agentic loop — calls web_search/fetch_url itself, no subagent indirection."""
|
|
return create_deep_agent(
|
|
model=model,
|
|
tools=agent_tools,
|
|
system_prompt=system_prompt,
|
|
)
|