Skip to content

How to create a tool with no parameters? #94

@imajus

Description

@imajus

How do I properly define a tool with no input parameters? The SDK doesn't permit to omit the parameters attribute in the tool definition. I tried to define an empty Zod object as a schema, which is accepted, but the tool is never get called that way.

My use cases is that I need to extract some data from the run context but don't want to pass this data through the LLM inference.

How do I instruct the LLM to call a tool with no parameters accepted?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions