Bluestep JS Documentation
    Preparing search index...

    Interface AiToolLiteral<S>

    Inline-tool literal whose executor's args is typed against the schema in the same object — used by B.ai.call's tools slots so the executor's argument type is derived from input_schema without going through B.ai.tool.custom(). input_schema is optional (a schema-less tool takes no arguments), which also keeps AiTool — whose input_schema is JSONSchema | null | undefined — structurally assignable, so factory-built tools (B.ai.tool.forNewEntry/forExistingEntry/custom()) flow into the tools array unchanged.

    interface AiToolLiteral<S extends JSONSchema = JSONSchema> {
        description?: string;
        executor: (args: FromSchema<S>) => unknown;
        input_schema?: S;
        name: string;
    }

    Type Parameters

    Index
    description?: string
    executor: (args: FromSchema<S>) => unknown
    input_schema?: S
    name: string