Skip to main content

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


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.27.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gigagraph_sdk-0.1.27-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file gigagraph_sdk-0.1.27.tar.gz.

File metadata

  • Download URL: gigagraph_sdk-0.1.27.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/23.5.0

File hashes

Hashes for gigagraph_sdk-0.1.27.tar.gz
Algorithm Hash digest
SHA256 2f520d10d19bd2452e32a3794ad320ef2de49962c17c222386964b710739d1a2
MD5 8d14568466f9ee031a0e0c2b36df582d
BLAKE2b-256 4a18bf099afb5d7dfb4c1674e60cb83229a6208a5140fe4546f2403127b2a106

See more details on using hashes here.

File details

Details for the file gigagraph_sdk-0.1.27-py3-none-any.whl.

File metadata

  • Download URL: gigagraph_sdk-0.1.27-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/23.5.0

File hashes

Hashes for gigagraph_sdk-0.1.27-py3-none-any.whl
Algorithm Hash digest
SHA256 37b0aa5f31d8badae8b003c692d9ddd0c860769b47fa11aaae67ae2f2d293bed
MD5 fc636f4f8a5df9f781da1349ec4f3e49
BLAKE2b-256 364a1b518178275eb7221e5eda910915ebd9603166ba2a9c5d745a931549465d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page