Skip to content

Conversation

@Abhijay007
Copy link
Collaborator

@Abhijay007 Abhijay007 commented Sep 9, 2025

related: #3770

Pull Request Description

This PR fixes Google AI API schema validation errors by adding missing items specifications to array properties in the dynamic task tool schema. The Google AI API was rejecting requests with 400 Bad Request errors due to incomplete JSON Schema definitions.

Changes Made

  • Added items field specifications to four array properties in dynamic_task_tools.rs:

    • extensions: defined as array of objects
    • parameters: defined as array of objects
    • context: defined as array of strings
    • activities: defined as array of strings

Preview of error :

pythonRecipe

…l schema

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
@taniandjerry
Copy link
Contributor

@DOsinga @alexhancock @jamadeo @zanesq @angelahning @michaelneale pinging for review on this for Abhijay <3

@alexhancock alexhancock merged commit 0a4c609 into block:main Sep 9, 2025
10 checks passed
@alexhancock alexhancock mentioned this pull request Sep 9, 2025
@michaelneale
Copy link
Collaborator

amazing catch. I bet more will creep in like this with gemini, I wonder if there is some general test we can do

katzdave added a commit that referenced this pull request Sep 10, 2025
…data

* 'main' of github.com:block/goose:
  refactor: add new recipe dependency updater (#4596)
  chore: fix nightly builds to have tags (#4595)
  feat: Import file contents from recipe 'file' input type parameter (#4558)
  also adding this change to the api key send for recipes (#4587)
  Fix local (working directory) recipes storage (#4588)
  fix: don't redact tool calls (#4589)
  Prompt injection detection (simplified - only pattern matching) (#4237)
  feat: add streaming support to Tetrate Agent Router Service provider (#4477)
  docs: goosehints updates (#4581)
  Iand/recipe scanner updates (#4584)
  patching recipe scanning workflows for permissions changes (#4579)
  fix: onboarding endpoints send token secret (#4575)
  Fix : Google AI schema validation by adding missing array items fields (#4569)
  Add unified diff support to text editor (#4522)
michaelneale added a commit that referenced this pull request Sep 10, 2025
* main: (29 commits)
  docs: update built-in extensions list and fix link (#4601)
  Add Message Metadata for Visibility Control (#4538)
  Remove deprecated Claude 3.5 models (#4590)
  Remove unused loadRecipe function (#4599)
  Send the secret with decodeRecipe (#4597)
  fix markdown links overflowing content and hide agent link previews (#4585)
  refactor: add new recipe dependency updater (#4596)
  chore: fix nightly builds to have tags (#4595)
  feat: Import file contents from recipe 'file' input type parameter (#4558)
  also adding this change to the api key send for recipes (#4587)
  Fix local (working directory) recipes storage (#4588)
  fix: don't redact tool calls (#4589)
  Prompt injection detection (simplified - only pattern matching) (#4237)
  feat: add streaming support to Tetrate Agent Router Service provider (#4477)
  docs: goosehints updates (#4581)
  Iand/recipe scanner updates (#4584)
  patching recipe scanning workflows for permissions changes (#4579)
  fix: onboarding endpoints send token secret (#4575)
  Fix : Google AI schema validation by adding missing array items fields (#4569)
  Add unified diff support to text editor (#4522)
  ...
michaelneale added a commit that referenced this pull request Sep 10, 2025
* main: (30 commits)
  docs: update built-in extensions list and fix link (#4601)
  Add Message Metadata for Visibility Control (#4538)
  Remove deprecated Claude 3.5 models (#4590)
  Remove unused loadRecipe function (#4599)
  Send the secret with decodeRecipe (#4597)
  fix markdown links overflowing content and hide agent link previews (#4585)
  refactor: add new recipe dependency updater (#4596)
  chore: fix nightly builds to have tags (#4595)
  feat: Import file contents from recipe 'file' input type parameter (#4558)
  also adding this change to the api key send for recipes (#4587)
  Fix local (working directory) recipes storage (#4588)
  fix: don't redact tool calls (#4589)
  Prompt injection detection (simplified - only pattern matching) (#4237)
  feat: add streaming support to Tetrate Agent Router Service provider (#4477)
  docs: goosehints updates (#4581)
  Iand/recipe scanner updates (#4584)
  patching recipe scanning workflows for permissions changes (#4579)
  fix: onboarding endpoints send token secret (#4575)
  Fix : Google AI schema validation by adding missing array items fields (#4569)
  Add unified diff support to text editor (#4522)
  ...
thebristolsound pushed a commit to thebristolsound/goose that referenced this pull request Sep 11, 2025
block#4569)

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Matt Donovan <mattddonovan@protonmail.com>
HikaruEgashira pushed a commit to HikaruEgashira/goose that referenced this pull request Oct 3, 2025
block#4569)

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: HikaruEgashira <hikaru-egashira@c-fo.com>
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.

4 participants