-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Add auto-instrumentation support for Cohere LLM API.
Why
Cohere is a popular LLM provider, especially for enterprise use cases. Adding support would help more developers debug their agents.
Implementation Guide
- Create
src/agentdbg/instrumentors/cohere_instrumentor.py - Wrap
cohere.Client.chat()andcohere.Client.generate()methods - Extract token counts from response for cost tracking
- Add to
auto_instrument()in__init__.py - Add tests in
tests/unit/test_instrumentors.py - Add example in
examples/cohere_agent.py
Resources
- Cohere Python SDK
- Look at
openai_instrumentor.pyfor reference
Good First Issue
This is a great first contribution! The pattern is well-established in existing instrumentors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers