A custom agent implementation.
Create a custom agent using either:
create_agent()langgraphIf you're creating a custom graph, make sure the state schema includes a 'messages' key. This is required for the subagent to communicate results back to the main agent.
runnable: Runnable