Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[smolagents] Capture detailed token usage (cache write and modality breakdown)

Open
#608 1 comment 0 reactions 0 assignees View on GitHub

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from open-telemetry/opentelemetry-python-genai

All issues in open-telemetry/opentelemetry-python-genai

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.