pydantic-ai
pydantic-ai copied to clipboard
Add `id` and `finish_reason` to `ModelResponse`
These fields would be used to populate gen_ai.response.id and gen_ai.response.finish_reasons in https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/#genai-attributes
@alexmojaki please take a few minutes to add a description to your issue.
I would like to take this up. Some context would be really helpful.
related: https://github.com/pydantic/pydantic-ai/issues/509