LangSmith 提供用于与智能体服务器交互的 Python SDK。
Python SDK 参考 有关 Python SDK 的详细信息,请参阅 Python SDK 参考文档

安装

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

Python 同步 vs. 异步

Python SDK 为与智能体服务器交互提供同步(get_sync_client)和异步(get_client)客户端:
  • 同步
  • 异步
from langgraph_sdk import get_sync_client

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

了解更多


Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.