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
jsonbailey
approved these changes
Feb 18, 2026
jsonbailey
reviewed
Feb 18, 2026
Co-authored-by: Jason Bailey <jbailey@launchdarkly.com>
| self._context, | ||
| track_data, | ||
| eval_score.score, | ||
| ) |
There was a problem hiding this comment.
Duplicated judge response tracking logic within same class
Low Severity
track_judge_response and track_node_judge_response within AIGraphTracker contain nearly identical logic — the only difference is that track_node_judge_response adds "configKey" to the track data. Extracting the shared eval-iteration logic into a private helper (accepting an optional config_key) would reduce duplication and the risk of the two methods drifting out of sync during future changes.
Additional Locations (1)
jsonbailey
approved these changes
Feb 18, 2026
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
Adds new analytics/event emission paths and changes
agent_graph()return objects to always include a tracker, which could affect downstream behavior/telemetry volume but not core evaluation logic.Overview
Adds a new
AIGraphTrackerwith dedicated LaunchDarklytrackevents for agent-graph execution (graph invocation success/failure, latency, total tokens, execution path, node/tool invocations, redirects/handoffs, and judge metrics).LDAIClient.agent_graph()now creates and attaches this tracker using flag_ldMeta(variation key/version) and returns it onAgentGraphDefinitionvia a new optionaltrackerfield andget_tracker()accessor;AIGraphTrackeris also exported from the package root.Written by Cursor Bugbot for commit c6a09d0. This will update automatically on new commits. Configure here.