Skip to content

launchdarkly-server-sdk-ai-langchain: v0.4.0

Choose a tag to compare

@github-actions github-actions released this 02 Apr 17:51
Immutable release. Only release title and notes can be modified.
a48b364

0.4.0 (2026-04-02)

⚠ BREAKING CHANGES

  • Bump minimum LangChain version to 1.0.0
  • Split track_metrics_of into sync and async variants (#112)
  • Remove node-scoped methods from AIGraphTracker (track_node_invocation, track_tool_call, track_node_judge_response), use related AIConfigTracker methods instead
  • Extract shared utilities to openai_helper
  • Extract shared utilities to langchain_helper
  • Restructure provider factory and support additional create methods (#102)

Features

  • Add get_ai_usage_from_response to openai_helper (4fab18f)
  • Add get_tool_calls_from_response and sum_token_usage_from_messages to langchain_helper (4fab18f)
  • Add LangGraphAgentGraphRunner (56ce0fd)
  • Add LDAIClient.create_agent() returning ManagedAgent (53fd95e)
  • Add ManagedAgentGraph support (#111) (56ce0fd)
  • Add ModelRunner ABC with invoke_model() and (453c71c)
  • Add OpenAIAgentGraphRunner (56ce0fd)
  • Add OpenAIAgentRunner with agentic tool-calling loop (53fd95e)
  • add optimization package stub (872e81e)
  • Add optional graph_key to all LDAIConfigTracker track_* methods for graph correlation (4fab18f)
  • Add track_tool_call/track_tool_calls to LDAIConfigTracker (4fab18f)
  • Adds optimization package stub (58b7731)
  • Bump minimum LangChain version to 1.0.0 (dc592c5)
  • Deprecated Chat object in favor of ManagedModel (453c71c)
  • Deprecated create_chat(), use create_model() on the LDAIClient (453c71c)
  • Drop support for python 3.9 (#114) (dc592c5)
  • Extract shared utilities to langchain_helper (453c71c)
  • Extract shared utilities to openai_helper (453c71c)
  • Introduce ManagedAgent and AgentRunner implementations (#110) (53fd95e)
  • Introduce ManagedModel and ModelRunner (PR-3) (#104) (453c71c)
  • Restructure provider factory and support additional create methods (#102) (e6e4907)
  • Split track_metrics_of into sync and async variants (#112) (4fab18f)

Bug Fixes

  • make AIGraphTracker.track_total_tokens accept Optional[TokenUsage], skip when None or total <= 0 (4fab18f)
  • Remove node-scoped methods from AIGraphTracker (track_node_invocation, track_tool_call, track_node_judge_response), use related AIConfigTracker methods instead (4fab18f)
  • use time.perf_counter_ns() for sub-millisecond precision in duration calculations (4fab18f)