@hbbio/nanoagent
    Preparing search index...

    Type Alias Tool

    OpenAI‑style JSON schema describing a callable tool.

    type Tool = {
        function: {
            description?: string;
            name: string;
            parameters: JSONSchemaObject;
        };
        type: "function";
    }
    Index

    Properties

    Properties

    function: { description?: string; name: string; parameters: JSONSchemaObject }

    Type declaration

    • Optionaldescription?: string

      Short human description shown to LLM

    • name: string

      Unique, kebab‑case identifier

    • parameters: JSONSchemaObject

      JSON Schema for arguments passed to the handler

    type: "function"