Commit d645b30
feat!: consolidate graph metric summary into LDAIGraphMetricSummary
The managed-layer `AIGraphMetricSummary` and the tracker-layer
`LDAIGraphMetricSummary` were duplicate interfaces describing the same
concept with slightly different fields. Consolidate to the existing
`LDAIGraphMetricSummary` (which follows the JS LD-prefix naming
convention for the spec's `AIGraphMetricSummary`) and add the missing
`nodeMetrics` field so it can carry the per-node summaries returned by
`ManagedAgentGraph.run()`.
`AIGraphMetricSummary` is removed; `ManagedGraphResult.metrics` and
`ManagedAgentGraph` now use `LDAIGraphMetricSummary`. All fields remain
optional so the tracker can populate them incrementally; the managed
layer fills them all in.
BREAKING CHANGE: `AIGraphMetricSummary` is removed. Consumers should
import `LDAIGraphMetricSummary` from `@launchdarkly/server-sdk-ai`
instead. Existing `LDAIGraphMetricSummary` consumers gain an optional
`nodeMetrics` field.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 70e4eb9 commit d645b30
2 files changed
Lines changed: 15 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
| |||
125 | 134 | | |
126 | 135 | | |
127 | 136 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 137 | | |
165 | 138 | | |
166 | 139 | | |
| |||
173 | 146 | | |
174 | 147 | | |
175 | 148 | | |
176 | | - | |
| 149 | + | |
177 | 150 | | |
178 | 151 | | |
179 | 152 | | |
| |||
0 commit comments