Skip to content

[BUG] Structure Output from Preventing tool invocation #307

Closed as duplicate
@mekjr1

Description

@mekjr1

Checks

  • I have updated to the lastest minor and patch version of Strands
  • I have checked the documentation and this is not expected behavior
  • I have searched ./issues and there are no duplicates of my issue

Strands Version

0.1.9

Python Version

3.12

Operating System

Ubuntu 24.04.1 LTS

Installation Method

pip

Steps to Reproduce

  1. Simply create an agent with tools.

Expected Behavior

Normal flow, tools being called and then MyCustom model object as the output

Actual Behavior

Tools are not being called, but the output is MyCustom model object

Additional Context

From the looks of the outputs, its seems like the structured_output feature is registering a named after the response Model type. and that is the only tool being called

Possible Solution

No response

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions