mirror of
https://github.com/langchain-ai/langgraph-codeact.git
synced 2026-07-25 21:25:26 -04:00
Incorporate Codeact with Multi-agent workflow? #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!
@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?
@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!
@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):
released in 0.1.2