open-telemetry / open-telemetry/opentelemetry-python-genai
[anthropic] Capture tool definitions on chat
Open
Beginner friendly
Nobody has claimed this yet.
openinference-migration
- Dominant language
- Python
- Stars
- 39
- Forks
- 63
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 175
Description
[!NOTE]
This issue was generated with AI assistance and requires investigation and confirmation prior to being worked on.
Part of #542.
Capture tool definitions on chat from request tools.
- Maps to
gen_ai.tool.definitions(OpenInference:llm.tools.*.tool.json_schema) - Affected files:
src/opentelemetry/instrumentation/genai/anthropic/messages_extractors.py, tests
Contributor 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.
Research direction
Start with src/opentelemetry/instrumentation/genai/anthropic/messages_extractors.py and the related tests. Trace how chat request tools are extracted, then confirm that tool definitions map to gen_ai.tool.definitions and the OpenInference llm.tools.*.tool.json_schema form. Done means the request tool definitions are captured and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100