from langgraph.prebuilt import create_react_agent
from src.components.tools import search_tools, think_tools

agent = create_react_agent(
    model="openai:gpt-4o",
    tools=[think_tools.think_and_plan, search_tools.perplexity_search_agent],
)

r = agent.invoke(
    {"messages": [{"role": "user", "content": "查询北京的天气和计算 1+2+3 ，用可用的工具"}]})
print(r)
