Skip to content

sdk==0.1.27

Choose a tag to compare

@github-actions github-actions released this 03 Aug 18:50

langgraph-sdk 0.1.27

Summary of Changes

  • Improved client initialization flexibility by making URL parameter optional with intelligent defaults (PR #1216)
  • Added comprehensive documentation with examples to all client methods (PR #1130)
  • Fixed syntax error in threads search example (PR #1139)
  • Improved schema definitions and moved RunCreate TypedDict to schema.py for better organization

Detailed Changes

get_client

  • Changed URL parameter to be optional with better defaults
  • Added support for ASGI transport with correct root path configuration
  • Improved documentation with clearer parameter descriptions
  • Reorganized transport creation logic for better readability

AssistantsAPI

  • Added detailed documentation with examples to all methods:
    • get, get_graph, get_schemas, create, update, delete, and search
  • Added the if_exists parameter to the create method for handling duplicate creation
  • Improved parameter descriptions for better clarity on available options

ThreadsAPI

  • Added detailed documentation with examples to all methods:
    • get, create, update, delete, search, get_state, update_state, patch_state, get_history
  • Added a new copy method for copying threads
  • Improved parameter descriptions to clarify possible values (e.g., status options)

RunsAPI

  • Added detailed documentation with examples to all methods:
    • stream, create, wait, list, get, cancel, join, delete
  • Fixed method description for cancel method (was incorrectly labeled as "Get a run")
  • Provided comprehensive examples showing input parameters and expected responses

CronsAPI

  • Added detailed documentation with examples to all methods:
    • create_for_thread, create, delete, search
  • Clarified parameters and return values
  • Added examples showing how to create and manage cron jobs

GraphSchema

  • Made schema fields optional (input_schema, state_schema, config_schema)
  • Added better documentation explaining when fields might be missing
  • Improved type definitions for better TypeScript interoperability