mirror of
https://github.com/langchain-ai/langgraph-codeact.git
synced 2026-07-25 13:15:35 -04:00
Proposal to Add a Sample .py File Demonstrating CodeAct vs. JSON Tool Invocation Comparison #8
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 @RyuseiTakahashi on GitHub (Apr 8, 2025).
Dear LangGraph CodeAct Maintainers,
Contributing Intent
I would like to contribute to this OSS repository and hold the maintainers and community in high regard.
I have a lot of respect for the maintainers and the community.
I welcome feedback and design advice from the maintainers and community regarding this proposal.
Background and Current Situation
I hope you are doing well. I would like to propose the addition of a new sample Python file under the /langgraph-codeact/examples directory.
Currently, there is a comparison made between CodeAct (which corresponds to CodeAgent on Hugging Face) and the JSON-based tool invocation method. At present, the examples only demonstrate the execution of CodeAct on its own. I believe that providing examples that contrast the execution of CodeAct with that of invoking tools via a JSON format would help users clearly understand the differences between the two approaches, leading to skill improvement.
Note: I have personally experimented with both methods and have been able to grasp the differences and execution variations between them.
Benefits of the Improvement
By comparing the CodeAct approach with the JSON-based agent, the distinctions between the two methods will be clarified. This comparison will enable users to better understand the available options and choose the most appropriate method for their needs.
Outline of the Proposed Nodes
Below are the mermaid diagrams that compare the graphs for both approaches.
Graph for CodeAct:
Graph for JSON Format:
I believe that adding this sample file will greatly benefit users by providing clear insights into the differences between the two approaches. Thank you very much for considering my proposal, and please let me know if you require any further information or clarification.
Sincerely,
Ryusei Takahashi
@RyuseiTakahashi commented on GitHub (Apr 8, 2025):
If there are no objections, I would be happy to address this issue myself.
Would that be alright with you?