langgraph-api 0.1.0

Rust Client API of LangGraph
Documentation

langgraph-api

Build Rust Code style: rustfmt Linter: clippy

Rust API Client SDK for LangGraph API

Overview

This is an auto-generated Rust client library for the LangGraph API. It provides type-safe bindings for interacting with the AgentOS platform, which manages AI agents, teams, workflows, sessions, and more.

Features

  • Type-safe API client: Auto-generated from OpenAPI specification
  • Async/await support: Built on reqwest with async/await
  • Flexible TLS backends: Choose between rustls-tls (default) or native-tls
  • Comprehensive API coverage: Full support for all AgentOS endpoints including:
    • Agent management and execution
    • Team and workflow orchestration
    • Session management
    • Memory and knowledge base operations
    • Configuration management

Installation

Add this to your Cargo.toml:

[dependencies]
langgraph-api = { version = "0.1.0", features = ["rustls-tls"] }

Or with native TLS:

[dependencies]
langgraph-api = { version = "0.1.0", features = ["native-tls"] }

Version Compatibility

The following table shows the version correspondence between the client and LangGraph API:

Client Version LangGraph API Version
0.1.0 0.1.0

Please ensure you use a compatible client version for your LangGraph API version to avoid compatibility issues.

Usage

use langgraph_api::apis::*;
use langgraph_api::models::*;
...

Features

  • default: Enables rustls-tls feature
  • rustls-tls: Use rustls for TLS (default, recommended)
  • native-tls: Use native TLS implementation

Development

This SDK is generated from the OpenAPI specification using OpenAPI Generator.

To regenerate the SDK:

./scripts/generate_api_sdk.sh

This script:

  1. Generates the SDK from api/langgraph-openapi.json
  2. Copies the generated code to src/generated/
  3. Formats the code with cargo fmt

Requirements

  • Rust 1.85 or later
  • OpenAPI Generator CLI (for regeneration)

License

See LICENSE file for details.

Contributing

Contributions are welcome! Please ensure that:

  • Code is formatted with cargo fmt
  • All tests pass with cargo test
  • Clippy checks pass with cargo clippy