Skip to content

Conversation

@mwildehahn
Copy link
Contributor

This allows us to inspect the resolved tools / settings that were sent with the request. We don't serialize these in the ModelRequest for now since it would bloat existing serialization unnecessarily.

@mwildehahn mwildehahn force-pushed the mh/tool-introspection branch 2 times, most recently from dea4c44 to acced35 Compare November 13, 2025 00:10
if TYPE_CHECKING:
from .models.instrumented import InstrumentationSettings

ModelRequestParametersField = ModelRequestParameters | None
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Even though we don't serialize these, if we don't do this the TypeAdapter will try to inspect all the fields leading to issues with some httpx types included in the models.

@mwildehahn mwildehahn force-pushed the mh/tool-introspection branch from 28e3d44 to 618e9a1 Compare November 13, 2025 16:52
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.

1 participant