Interface ILlmApplication<Model>

Application of LLM function calling.

ILlmApplication is a data structure representing a collection of LLM function calling schemas, composed from a native TypeScript class (or interface) type by the typia.llm.application<App, Model>() function.

Also, there can be some parameters (or their nested properties) which must be composed by Human, not by LLM. File uploading feature or some sensitive information like secret key (password) are the examples. In that case, you can separate the function parameters to both LLM and human sides by configuring the ILlmApplication.IOptions.separate property. The separated parameters are assigned to the ILlmFunction.separated property.

For reference, when both LLM and Human filled parameter values to call, you can merge them by calling the HttpLlm.mergeParameters function. In other words, if you've configured the ILlmApplication.IOptions.separate property, you have to merge the separated parameters before the function call execution.

interface ILlmApplication<Model extends Model> {
    functions: ILlmFunction<Model>[];
    model: Model;
    options: ILlmApplication.IOptions<Model>;
}

Type Parameters

Properties

functions: ILlmFunction<Model>[]

List of function metadata.

List of function metadata that can be used for the LLM function call.

model: Model

Model of the LLM.

Configuration for the application.