Skip to content

Prompts that ask for tool invocation exemplar code cause 4xx errors #1857

@shapirodanieladam

Description

@shapirodanieladam

Describe the bug

prompts that elicit responses which include tool invocation exemplar code cause goose to issue failed tool invocations, yielding a 4xx response and an unrecoverable session

To Reproduce
Steps to reproduce the behavior:

  1. prompt goose with either of the following statements
how are tool invocation messages handled in goose?
what's the expected message format for tool invocations?
  1. observe that the response yields content which is immediately parsed as a "real" tool invocation request, resulting in a 4xx error

Expected behavior

Goose can hold a multi-turn conversation about agentic tools without attempting to run exemplar tool code returned by the underlying model; sessions are not rendered unrecoverable

Screenshots

Image Image Image

Please provide following information:

  • OS & Arch: macos m3 max / 15.3.1 (24D70)
  • Interface: ui
  • Version: [Goose] Version 1.0.15-block.202503190039-808b0 (1.0.15-block.202503190039-808b0)
  • Extensions enabled: Developer (only)
  • Provider & Model: Claude Sonnet 3.5

Additional context

Image Image

Metadata

Metadata

Assignees

Labels

p2Priority 2 - Medium

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions