Incorporate Codeact with Multi-agent workflow? #6

Closed
opened 2026-02-16 07:16:29 -05:00 by yindo · 4 comments
Owner

Originally created by @PANhuihuihuihui on GitHub (Apr 3, 2025).

Amazing rollout!

I am assuming that this Code-act architect can be an upgrade or replace of python_repl_tool we had in previous examples. And I am trying to compile a multi-agent framework enabling data analysis ability. What I currently have is two sub-agents created by create_react_agent with customized state_schema. I want both of the two sub-agents to be able to execute python codes.

Problem: 1) python_repl_tool is unstable and wastes a lot of re-try with missing import or minor errors. 2) If I switch to create_codeact for creating my sub-agents, no state_schema and name space is allowed, so no supervisor agent is allowed to link them together.

Wonder what should be a better practice using langgraph? Many thanks in advance! This is important!

Originally created by @PANhuihuihuihui on GitHub (Apr 3, 2025). Amazing rollout! I am assuming that this Code-act architect can be an upgrade or replace of python_repl_tool we had in previous examples. And I am trying to compile a multi-agent framework enabling data analysis ability. What I currently have is two sub-agents created by create_react_agent with customized state_schema. I want both of the two sub-agents to be able to execute python codes. Problem: 1) python_repl_tool is unstable and wastes a lot of re-try with missing import or minor errors. 2) If I switch to create_codeact for creating my sub-agents, no state_schema and name space is allowed, so no supervisor agent is allowed to link them together. Wonder what should be a better practice using langgraph? Many thanks in advance! This is important!
yindo closed this issue 2026-02-16 07:16:29 -05:00
Author
Owner

@vbarda commented on GitHub (Apr 4, 2025):

i think we should just support state_schema in langgraph-codeact - i will add a PR!
what do you mean by namespace?

anything else you think missing?

@vbarda commented on GitHub (Apr 4, 2025): i think we should just support state_schema in `langgraph-codeact` - i will add a PR! what do you mean by namespace? anything else you think missing?
Author
Owner

@PANhuihuihuihui commented on GitHub (Apr 8, 2025):

Sorry for the late reply!

Support state_schema sounds really great!

To integrate Code-act with sub-agents and supervisor agents structure using create_supervisor method, we need a name for each sub-agents. Can we also support "name" field in code-act? https://github.com/langchain-ai/langgraph-supervisor-py/blob/main/langgraph_supervisor/supervisor.py#L176 Or is there any other method you would recommend? Maybe compiling two separate graph and add edges between code-act node and supervisor node? This would be super helpful! Thanks!

@PANhuihuihuihui commented on GitHub (Apr 8, 2025): Sorry for the late reply! Support state_schema sounds really great! To integrate Code-act with sub-agents and supervisor agents structure using create_supervisor method, we need a name for each sub-agents. Can we also support "name" field in code-act? https://github.com/langchain-ai/langgraph-supervisor-py/blob/main/langgraph_supervisor/supervisor.py#L176 Or is there any other method you would recommend? Maybe compiling two separate graph and add edges between code-act node and supervisor node? This would be super helpful! Thanks!
Author
Owner

@vbarda commented on GitHub (Apr 11, 2025):

great point, name is needed as well - you can just pass it to the codeact.compile(name=...)

@vbarda commented on GitHub (Apr 11, 2025): great point, name is needed as well - you can just pass it to the `codeact.compile(name=...)`
Author
Owner

@vbarda commented on GitHub (Apr 11, 2025):

released in 0.1.2

@vbarda commented on GitHub (Apr 11, 2025): released in 0.1.2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph-codeact#6