Skip to content

feat: emit sigil.gen_ai.tool_call_count span attribute#17

Draft
alexander-akhmetov wants to merge 1 commit intomainfrom
alexander-akhmetov/tool_call_count
Draft

feat: emit sigil.gen_ai.tool_call_count span attribute#17
alexander-akhmetov wants to merge 1 commit intomainfrom
alexander-akhmetov/tool_call_count

Conversation

@alexander-akhmetov
Copy link
Copy Markdown
Collaborator

@alexander-akhmetov alexander-akhmetov commented Apr 5, 2026

Set tool_call_count as an int64 span attribute on
generation spans, letting users filter by tool call count.


Note

Low Risk
Low risk: adds a new optional span attribute derived from existing generation output without changing export formats or control flow beyond extra tag setting and test assertions.

Overview
Adds a new generation-span attribute, sigil.gen_ai.tool_call_count, emitted when tool-call parts are present in the model output (Dotnet/Go/Java/JS/Python).

Updates conformance tests across SDKs to assert the new attribute is set (and makes JS generation.output optional to support counting when present).

Reviewed by Cursor Bugbot for commit afac177. Bugbot is set up for automated code reviews on this repo. Configure here.

Set tool_call_count as an int64 span attribute on
generation spans, letting users filter by tool call count.
@alexander-akhmetov
Copy link
Copy Markdown
Collaborator Author

bugbot review

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit afac177. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant