TypeScript class controller.

You can make it by typia.llm.application<App, Model>() function.

interface IClass<Model extends ILlmSchema.Model> {
    application: ILlmApplicationOfValidate;
    execute:
        | object
        | (
            props: {
                application: ILlmApplicationOfValidate<Model>;
                arguments: object;
                function: ILlmFunctionOfValidate<Model>;
            },
        ) => Promise<unknown>;
    name: string;
    protocol: "class";
}

Type Parameters

  • Model extends ILlmSchema.Model

Hierarchy

Properties

Application schema of function calling.

execute:
    | object
    | (
        props: {
            application: ILlmApplicationOfValidate<Model>;
            arguments: object;
            function: ILlmFunctionOfValidate<Model>;
        },
    ) => Promise<unknown>

Executor of the class function.

Executor of the class function, by target class instance or callback function with given schema and arguments information.

name: string

Name of the controller.

protocol: "class"

Protocol discrminator.