跳到主要内容
LangSmith 提供了一个 Python SDK,用于与 LangGraph Server 进行交互。
Python SDK 参考 有关 Python SDK 的详细信息,请参阅 Python SDK 参考文档

安装

您可以使用适合您语言的包管理器安装这些包
  • Python
  • JS
pip install langgraph-sdk

Python 同步 vs. 异步

Python SDK 提供同步 (get_sync_client) 和异步 (get_client) 客户端,用于与 LangGraph Server 进行交互
  • 同步
  • 异步
from langgraph_sdk import get_sync_client

client = get_sync_client(url=..., api_key=...)
client.assistants.search()

了解更多


以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.