LangGraph integration for by-framework
Project description
by-framework-langgraph
LangGraph integration for by-framework. Provides two integration modes:
- Adapter Mode — Plug existing LangGraph graphs into by-framework with one line
- Native Mode — Build LangGraph workers with native
call_agent/ask_user/resumesupport
Installation
uv add by-framework-langgraph
Quick Start
Adapter Mode — Plug in existing graphs
from by_framework.worker import ByaiWorker
from by_framework_langgraph import LangGraphAdapter
class MyWorker(ByaiWorker):
def get_agent_types(self):
return ["my-agent"]
async def process_command(self, command, context):
graph = build_my_existing_graph() # your existing LangGraph
adapter = LangGraphAdapter(graph, context)
return await adapter.run(command)
Native Mode — Framework-native LangGraph workers
from by_framework_langgraph import LangGraphWorker, make_remote_agent_tool, make_ask_user_tool
class OrchestratorWorker(LangGraphWorker):
def get_agent_types(self):
return ["orchestrator"]
def build_graph(self, context, command):
poet = make_remote_agent_tool(context, "invoke_poet", "poet-agent", "调度诗人创作")
ask = make_ask_user_tool(context)
llm = ChatOpenAI(model="gpt-4o").bind_tools([poet, ask])
# ... build and return compiled graph
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file by_framework_langgraph-0.0.2.tar.gz.
File metadata
- Download URL: by_framework_langgraph-0.0.2.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ac6cb23abdfb0fb191fe0f73e3c5c6c7f3224e84f84425fde9fd43366c3e356
|
|
| MD5 |
5d4c68e83bfba0c934e5d4bbac7a5861
|
|
| BLAKE2b-256 |
5a9cbd2d60f858fddbb884c7ab116a6db0cdcaef140d3f58905f8ab757a239b9
|
Provenance
The following attestation bundles were made for by_framework_langgraph-0.0.2.tar.gz:
Publisher:
publish.yml on beyonai/by-framework-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
by_framework_langgraph-0.0.2.tar.gz -
Subject digest:
5ac6cb23abdfb0fb191fe0f73e3c5c6c7f3224e84f84425fde9fd43366c3e356 - Sigstore transparency entry: 1566812012
- Sigstore integration time:
-
Permalink:
beyonai/by-framework-python@efaeb19d978e8845a5fef0b6633e32a07c2713c7 -
Branch / Tag:
refs/tags/by-framework-langgraph-v0.0.2 - Owner: https://github.com/beyonai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@efaeb19d978e8845a5fef0b6633e32a07c2713c7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file by_framework_langgraph-0.0.2-py3-none-any.whl.
File metadata
- Download URL: by_framework_langgraph-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0eacc0a977da3601216323859b87f42820de772618ef9ae8785e4c7cfca7f8e
|
|
| MD5 |
0a2eacca73a40fa4692def7eb62fd1a5
|
|
| BLAKE2b-256 |
82357c98fb6e8b4c19239637c9238c6b236e3c0824c749329231310aa4e42e77
|
Provenance
The following attestation bundles were made for by_framework_langgraph-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on beyonai/by-framework-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
by_framework_langgraph-0.0.2-py3-none-any.whl -
Subject digest:
a0eacc0a977da3601216323859b87f42820de772618ef9ae8785e4c7cfca7f8e - Sigstore transparency entry: 1566812021
- Sigstore integration time:
-
Permalink:
beyonai/by-framework-python@efaeb19d978e8845a5fef0b6633e32a07c2713c7 -
Branch / Tag:
refs/tags/by-framework-langgraph-v0.0.2 - Owner: https://github.com/beyonai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@efaeb19d978e8845a5fef0b6633e32a07c2713c7 -
Trigger Event:
push
-
Statement type: