[smolagents] Capture detailed token usage (cache write and modality breakdown)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- ai, observability
Research direction
Start by locating the smolagents integration and the InferenceInvocation construction path, then inspect which usage fields smolagents responses expose. Record cache-write input tokens and supported modality breakdowns on InferenceInvocation, and verify that the attributes are populated only when the response provides them.
Written by the indexing model from the issue text.
Description
Extract and record detailed token usage attributes (gen_ai.usage.cache_write.input_tokens, modality breakdowns) on InferenceInvocation from smolagents responses where supported.
- Dominant language
- Python
- Stars
- 46
- Forks
- 93
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 117
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from open-telemetry/opentelemetry-python-genai
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
open-telemetry/opentelemetry-python-genai#997 · 1 comment ·
Maintainers usually reply within 1 day
-
Support disabling OpenAI Agents native trace export through an environment variablePossibly taken @123liuziming claimed this 8 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
open-telemetry/opentelemetry-python-genai#922 · 3 comments ·
Maintainers usually reply within 1 day
-
fix(smolagents): accept tuple inputs for messages, content, and task imagesPossibly taken @SAMurai-16 claimed this 11 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
open-telemetry/opentelemetry-python-genai#905 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
open-telemetry/opentelemetry-python-genai#857 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
[genai-bedrock] invoke_model body passed as a file-like object: no request parameters or input messages are recordedPossibly taken @SyedTashfin claimed this 18 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-telemetry/opentelemetry-python-genai#848 ·
Maintainers usually reply within 1 day
All issues in open-telemetry/opentelemetry-python-genai
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
btclib-org/btclib-node#2132 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
freelawproject/juriscraper#2367 · 2 comments ·
Maintainers usually reply within 1 day
-
infra tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 78/100
gke-labs/kube-agents#4190 ·
Maintainers usually reply within 1 day