Skip to content

Conversation

@dmontagu
Copy link
Contributor

@alexmojaki not sure if you wanted to use response instead of result today; also not sure if we should wait to introduce these changes for "version 4" of the observability or similar. Or if we should keep this open and just make the changes when we release the next major version of pydantic-ai..?

class ReasoningPart(TypedDict):
"""A reasoning/thinking part in a GenAI message.
Per the semantic conventions, uses 'reasoning' type.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can find UriPart, BlobPart, and ReasoningPart in https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/gen-ai-input-messages.json with this schema. Not sure how practical it is for us to change this in the immediate future but I think we'll want to comply with those conventions asap..

type: Literal['tool_call_response']
id: str
name: str
# TODO: This should be `response` not `result`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also noted in https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/gen-ai-input-messages.json, I can update the PR to make this change you want, or I can revert the changes to the other types below.

@github-actions
Copy link

Docs Preview

commit: 80b9548
Preview URL: https://88ef90a9-pydantic-ai-previews.pydantic.workers.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants