Skip to content

Mode.BEDROCK_TOOLS missing from from_response parsing #1721

@aum-wmcginnis

Description

@aum-wmcginnis

https://github.com/567-labs/instructor/blob/main/instructor/function_calls.py#L190

When using Mode.BEDROCK_TOOLS I get an exception here that object dict doesn't have attribute choices. It looks like it's missing from the if else ladder so is not parsed at all, Mode.BEDROCK_JSON seems to work.

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