@cavell/kit API
    Preparing search index...

    Interface ReactToolCallRenderer<T>

    interface ReactToolCallRenderer<T = unknown> {
        agentId?: string;
        args?: StandardSchemaV1<any, T>;
        name: string;
        render: ComponentType<
            | {
                args: Partial<T>;
                name: string;
                result: undefined;
                status: InProgress;
                toolCallId: string;
            }
            | {
                args: T;
                name: string;
                result: undefined;
                status: Executing;
                toolCallId: string;
            }
            | {
                args: T;
                name: string;
                result: string;
                status: Complete;
                toolCallId: string;
            },
        >;
    }

    Type Parameters

    • T = unknown
    Index
    agentId?: string

    Optional agent ID to constrain this tool renderer to a specific agent. If specified, this renderer will only be used for the specified agent.

    args?: StandardSchemaV1<any, T>

    Schema describing the tool arguments. Optional — renderers registered for tools without parameters (e.g. HITL confirm dialogs) have no schema.

    name: string
    render: ComponentType<
        | {
            args: Partial<T>;
            name: string;
            result: undefined;
            status: InProgress;
            toolCallId: string;
        }
        | {
            args: T;
            name: string;
            result: undefined;
            status: Executing;
            toolCallId: string;
        }
        | {
            args: T;
            name: string;
            result: string;
            status: Complete;
            toolCallId: string;
        },
    >