Commit 14c4a36
Fix token counts in OpenAI Agents redux (#890)
* Update attribute extraction to support dict as well as object.
* Adjust tests to match serialization format of `list[str]`. Patch JSON encode in tests to handle MagicMock objects.
* Collect base usage attributes, too.
---------
Co-authored-by: Pratyush Shukla <[email protected]>1 parent 754acb2 commit 14c4a36
File tree
1 file changed
+4
-0
lines changed- agentops/instrumentation/openai_agents/attributes
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
| |||
0 commit comments