Context
Currently, we can only convert LangGraph ReAct agents into an AgentSpec agent, and arbitrary LangGraph graphs will get converted into a Flow with ToolNodes. In this PR we support to convert at least a graph with a node with the ReAct agent into a Flow with an AgentNode.
Acceptance
We should support graphs with agent nodes.
Context
Currently, we can only convert LangGraph ReAct agents into an AgentSpec agent, and arbitrary LangGraph graphs will get converted into a Flow with ToolNodes. In this PR we support to convert at least a graph with a node with the ReAct agent into a Flow with an AgentNode.
Acceptance
We should support graphs with agent nodes.