Skip to content

sdk==0.1.26

Choose a tag to compare

@github-actions github-actions released this 15 Jul 17:47
fad4de7

langgraph-sdk 0.1.26

Summary of Changes

  • Added batch run creation with new RunCreate type and create_batch method (PR #988, PR #989)
  • Added cron jobs support with new Cron class and search method (PR #804)
  • Added conflict handling behavior for thread creation with new OnConflictBehavior type (PR #1009)
  • Improved documentation for the assistant search method (PR #841)

Detailed Changes

RunCreate (TypedDict)

  • Added new RunCreate TypedDict for creating background runs with fields for thread_id, assistant_id, input, metadata, and various run configuration options (PR #988)
  • Fixed default value implementation for optional fields (PR #989)

LangGraphClient

  • Added create_batch method to create multiple runs in a single API call, improving efficiency for batch operations (PR #988)
  • Enhanced create method in Threads interface to support the if_exists parameter, allowing control over behavior when threads already exist (PR #1009)
  • Improved documentation for the Assistant search method with detailed parameter descriptions (PR #841)

Cron support

  • Added new Cron class in schema.py for representing scheduled jobs (PR #804)
  • Added search method to retrieve and filter cron jobs by assistant_id, thread_id, with pagination support (PR #804)

OnConflictBehavior

  • Added new type with options "raise" or "do_nothing" to define behavior when attempting to create a resource that already exists (PR #1009)