Skip to content

Structured output does not work when vector tool selection strategy is used #3700

@jsibbison-square

Description

@jsibbison-square

Describe the bug

When running a recipe that has structued output and goose config uses tool selection strategy config of: GOOSE_ROUTER_TOOL_SELECTION_STRATEGY: vector then it loops until max turns.

To Reproduce
Steps to reproduce the behavior:

goose run --recipe ./recipe.yaml

version: 1.0.0
title: "square root"
description: "square root"
prompt: Return the square root
instructions: |
  Figure out the square root of 512
extensions:
  - type: builtin
    name: developer
response:
  json_schema:
    properties:
      answer:
        type: string
        description: your answer
    required:
      - answer

Expected behavior
Finishes with structured output

Please provide following information:

  • OS & Arch: osx
  • Interface: CLI
  • Version: main
  • Extensions enabled: [e.g. Computer Controller, Figma]
  • Provider & Model: [e.g. Google - gemini-1.5-pro]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions