Skip to content

Model hooks with tool specs - historical #386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

zastrowm
Copy link
Member

@zastrowm zastrowm commented Jul 9, 2025

  • Add hooks for before/after Model invocation
  • Proof of concept for model invocation hooks with tool specs

zastrowm added 2 commits July 8, 2025 17:47
Now callers can subscribe and modify responses before they're sent to the model for processing.  The only writable property is tool_configs, which is the list of tool specs for the model.  I'm explicitly not passing toolChoice as it's hardcoded to "auto" right now and once we support actually adjusting it we can expose it as a hook.

We also don't support structured output as the parameters are not applicable
@zastrowm zastrowm changed the title model hooks Model hooks with tool specs - historical Jul 9, 2025
@zastrowm zastrowm closed this Jul 9, 2025
@zastrowm zastrowm mentioned this pull request Jul 9, 2025
7 tasks
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