@cubie-ai/tiny-ai - v0.0.14
    Preparing search index...

    Interface TinyToolConfig<T>

    Parameters used to build a tool.

    interface TinyToolConfig<T extends Record<string, any> = {}> {
        context?: T;
        description: string;
        handler?: (...args: any) => any;
        parameters?: ZodTypeAny | Schema;
    }

    Type Parameters

    • T extends Record<string, any> = {}
    Index

    Properties

    context?: T

    Optional context that will be passed to the handler

    description: string

    The description of the tool

    handler?: (...args: any) => any

    The function that will be called when the tool is executed

    parameters?: ZodTypeAny | Schema

    Optional parameters that are passed into the tools handler during invocation. Note: Client side tools don't specify handlers