Skip to content

Fail fast on unknown model tool calls#30

Open
gold-silver-copper wants to merge 1 commit into
mainfrom
gsc/gemini-fail-fast-tool-calls
Open

Fail fast on unknown model tool calls#30
gold-silver-copper wants to merge 1 commit into
mainfrom
gsc/gemini-fail-fast-tool-calls

Conversation

@gold-silver-copper

Copy link
Copy Markdown
Owner

Summary

  • fail fast when models emit tool calls for names Rig did not advertise
  • apply the same unknown-tool validation to streaming and non-streaming prompt loops
  • surface Gemini malformed-function-call terminal finish reasons as provider errors instead of empty assistant responses
  • allow agent-level hooks to be added after tools in the builder chain

Verification

  • cargo fmt
  • git diff --check
  • cargo test -p rig-core prompt_request -- --nocapture
  • cargo test -p rig-core malformed_function_call_without_content_is_error -- --nocapture
  • cargo check -p rig-core

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