Skip to content

fix: tool requests with pydantic models as parameters appear to be broken #404

@jakelorocco

Description

@jakelorocco

Encountered with Ollama while trying to create a finalizer tool for the react example where the finalizer tool as the specified format as its input parameter type (https://github.com/generative-computing/mellea/compare/jal/react-with-finalize-parameter?expand=1).

Ollama was consistently not following the expected format of the parameter. It may be that I was modifying the tool json incorrectly. But we should confirm that tool calls that ask for pydantic BaseModels are adhered to.

We should check Ollama along with the other backends. When this issue is fixed, please open up an issue to fix the react example mentioned above or fix it as a part of this issue.

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