Open
Conversation
andrewklatzke
commented
Feb 5, 2026
| @@ -1,11 +1,11 @@ | |||
| """Graph implementation for managing AI agent graphs.""" | |||
|
|
|||
| from dataclasses import dataclass | |||
Contributor
Author
There was a problem hiding this comment.
Unused import here, not sure why it wasn't picked up in previous lint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
Describe the solution you've provided
Implements the
AIGraphTrackerclass to handle tracking events for agent graphs in the SDK.Describe alternatives you've considered
This is the primary implementation of the tracker. It's broken into its own tracker rather than polluting the interface of the BaseTracker or AiConfigTracker since this is a separate entity that has its own interaction & metric patterns.
Additional context
This implements the following events to be tracked:
Note
Medium Risk
Introduces new analytics/telemetry behavior and changes the
agent_graphreturn object shape by attaching a tracker, which could affect consumers and increase event volume/cost if used incorrectly.Overview
Adds a new
AIGraphTrackerthat can emit graph-, node-, and edge-level LaunchDarkly events (invocation success/failure, latency, tokens, path, redirects/handoffs, tool calls, and judge metric scores).LDAIClient.agent_graph()now builds a tracker from flag variation metadata and attaches it to every returnedAgentGraphDefinition(including disabled/invalid graphs), andAgentGraphDefinitionexposes it viaget_tracker();AIGraphTrackeris also exported fromldai.__init__.Written by Cursor Bugbot for commit f07f60e. This will update automatically on new commits. Configure here.