Skip to content

fix(cohere): add tool spans for chat tool calls#380

Merged
Abhijeet Prasad (AbhiPrasad) merged 2 commits intomainfrom
abhi-fix-377-cohere-tool-spans
May 1, 2026
Merged

fix(cohere): add tool spans for chat tool calls#380
Abhijeet Prasad (AbhiPrasad) merged 2 commits intomainfrom
abhi-fix-377-cohere-tool-spans

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Emit child TOOL spans for Cohere chat responses that include tool calls, covering both v1 and v2 response shapes. Rename the shared Cohere field accessor to document why tracing handles both dict and SDK model objects.

resolves #377

Emit child TOOL spans for Cohere chat responses that include tool calls, covering both v1 and v2 response shapes. Rename the shared Cohere field accessor to document why tracing handles both dict and SDK model objects.\n\nAdd VCR-backed regression coverage for v1 and v2 tool-call responses.\n\nTest: nox -s "test_cohere(latest)" -- -k "tool_call_spans"
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit 6968fe5 into main May 1, 2026
82 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the abhi-fix-377-cohere-tool-spans branch May 1, 2026 22:21
Abhijeet Prasad (AbhiPrasad) added a commit that referenced this pull request May 4, 2026
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.

[bot] Cohere: Chat tool-use responses lack child TOOL spans

2 participants