SDK for interacting with GigaGraph API
Project description
LangGraph Python SDK
This repository contains the Python SDK for interacting with the LangGraph Cloud REST API.
Quick Start
To get started with the Python SDK, install the package
pip install -U langgraph-sdk
You will need a running LangGraph API server. If you're running a server locally using langgraph-cli
, SDK will automatically point at http://localhost:8123
, otherwise
you would need to specify the server URL when creating a client.
from langgraph_sdk import get_client
# If you're using a remote server, initialize the client with `get_client(url=REMOTE_URL)`
client = get_client()
# List all assistants
assistants = await client.assistants.search()
# We auto-create an assistant for each graph you register in config.
agent = assistants[0]
# Start a new thread
thread = await client.threads.create()
# Start a streaming run
input = {"messages": [{"role": "human", "content": "what's the weather in la"}]}
async for chunk in client.runs.stream(thread['thread_id'], agent['assistant_id'], input=input):
print(chunk)
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
gigagraph_sdk-0.1.25.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for gigagraph_sdk-0.1.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92576d328c264ee9ee513049c81b582a02967917541371c5f0341a5938efea38 |
|
MD5 | e4e277f49ff177153857b772739d5513 |
|
BLAKE2b-256 | 09021fd6d90eb52dc86476c1382743863205c455d6f6f0d2aaedafdf38fc69fd |