https://github.com/langchain-ai/langgraph-gen-py
CLI to generate LangGraph stubs from a specification
https://github.com/langchain-ai/langgraph-gen-py
Last synced: 7 months ago
JSON representation
CLI to generate LangGraph stubs from a specification
- Host: GitHub
- URL: https://github.com/langchain-ai/langgraph-gen-py
- Owner: langchain-ai
- License: mit
- Created: 2025-02-24T21:08:10.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T21:51:38.000Z (7 months ago)
- Last Synced: 2025-02-24T22:29:59.149Z (7 months ago)
- Language: Jinja
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-LangGraph - `langgraph-gen-py`
README
# langgraph-gen
langgraph-gen is a CLI tool that allows you to auto-generate a LangGraph stub from a
specification file.## Usage
```shell
pip install langgraph-gen
```
## Stubs for Python```shell
langgraph-gen --input --output --language python
```## Stubs for TypeScript
```shell
langgraph-gen --input --output --language typescript
```## Example Spec
```YAML
# A simple 2-step Retrieval-Augmented Generation workflow
name: RagWorkflow
entrypoint: retrieve
nodes:
- name: retrieve
- name: generate
edges:
- from: retrieve
to: generate
- from: generate
to: __end__
```## Examples
You can find examples of the LangGraph specification together with the generated LangGraph stubs in the [examples](./examples) directory.