Member Junction
    Preparing search index...

    Class ComputerUseTool<TInput, TOutput>

    A tool that the controller LLM can invoke during execution.

    Generics preserve type safety:

    • TInput: the shape of arguments the handler expects
    • TOutput: the shape of the result the handler returns

    Default generics use Record<string, unknown> and unknown (the widest safe types in TypeScript — NOT any).

    Type Parameters

    • TInput = Record<string, unknown>
    • TOutput = unknown
    Index

    Constructors

    Properties

    Description: string

    Human-readable description for the LLM to understand when to use this tool

    Handler: (args: TInput) => Promise<TOutput>

    The function that executes this tool

    InputSchema: JsonSchema

    JSON Schema defining the expected input arguments

    Name: string

    Unique tool name (must be valid for LLM function calling: alphanumeric + underscores)

    OutputSchema?: JsonSchema

    Optional JSON Schema for the output (informational, not enforced)