Type Alias IOptions<Model>

IOptions: {
    separate: null | (schema: ILlmSchema.ModelSchema[Model]) => boolean;
} & ILlmSchema.ModelConfig[Model]

Options for application composition.

Type Parameters

  • Model extends ILlmSchema.Model

Type declaration

  • separate: null | (schema: ILlmSchema.ModelSchema[Model]) => boolean

    Separator function for the parameters.

    When composing parameter arguments through LLM function call, there can be a case that some parameters must be composed by human, or LLM cannot understand the parameter.

    For example, if the parameter type has configured IGeminiSchema.IString.contentMediaType which indicates file uploading, it must be composed by human, not by LLM (Large Language Model).

    In that case, if you configure this property with a function that predicating whether the schema value must be composed by human or not, the parameters would be separated into two parts.

    • ILlmFunction.separated.llm
    • ILlmFunction.separated.human

    When writing the function, note that returning value true means to be a human composing the value, and false means to LLM composing the value. Also, when predicating the schema, it would better to utilize the GeminiTypeChecker like features.

    Schema to be separated.

    Whether the schema value must be composed by human or not.

    null