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() and cohere.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
Good First Issue
This is a great first contribution! The pattern is well-established in existing instrumentors.
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
src/agentdbg/instrumentors/cohere_instrumentor.pycohere.Client.chat()andcohere.Client.generate()methodsauto_instrument()in__init__.pytests/unit/test_instrumentors.pyexamples/cohere_agent.pyResources
openai_instrumentor.pyfor referenceGood First Issue
This is a great first contribution! The pattern is well-established in existing instrumentors.