Files
deer-flow/backend/src/agents/lead_agent/agent.py
2026-01-14 09:08:20 +08:00

12 lines
347 B
Python

from langchain.agents import create_agent
from src.agents.lead_agent.prompt import apply_prompt_template
from src.models import create_chat_model
from src.tools import get_available_tools
lead_agent = create_agent(
model=create_chat_model(thinking_enabled=True),
tools=get_available_tools(),
system_prompt=apply_prompt_template(),
)