Skip to main content

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)

Metadata

Release files for gigagraph-sdk 0.1.29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gigagraph-sdk 0.1.29
File Size Uploaded
gigagraph_sdk-0.1.29.tar.gz 13.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gigagraph-sdk 0.1.29
File Interpreter ABI Platform
gigagraph_sdk-0.1.29-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / gigagraph_sdk-0.1.29.tar.gz

Download URL gigagraph_sdk-0.1.29.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b1595b1722e1a3172487c1f1a73b78486c400c3291bde28f0181858b4496c2d6
BLAKE2b-256 checksum
How to use checksums
b4d57a50b59ef2440f6d7ba02beff39a234487cd24948e39decc746522129cea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0

Release files / gigagraph_sdk-0.1.29-py3-none-any.whl

Download URL gigagraph_sdk-0.1.29-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5798485e15dcea8ab9ce743d08984330330c254692964012f49edd6e990e9c02
BLAKE2b-256 checksum
How to use checksums
d37c872f752b63ac52a6b65e69061260e7cef2f7e5c2d63486c11451b350bce5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.1.29 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page