TypeScript class controller.

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

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

Hierarchy

  • IBase<"class", ILlmApplicationOfValidate<"chatgpt">>
    • IClass

Properties

application: ILlmApplicationOfValidate

Application schema of function calling.

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

Executor of the class function.

Type declaration

    • (
          props: {
              application: ILlmApplicationOfValidate<"chatgpt">;
              arguments: object;
              function: ILlmFunctionOfValidate<"chatgpt">;
          },
      ): Promise<unknown>
    • Parameters

      • props: {
            application: ILlmApplicationOfValidate<"chatgpt">;
            arguments: object;
            function: ILlmFunctionOfValidate<"chatgpt">;
        }

        Properties of the function call.

        • application: ILlmApplicationOfValidate<"chatgpt">

          Target application schema.

        • arguments: object

          Arguments of the function calling.

        • function: ILlmFunctionOfValidate<"chatgpt">

          Target function schema.

      Returns Promise<unknown>

      Return value of the function call.

name: string

Name of the controller.

protocol: "class"

Protocol discrminator.