LLM responses#

Responses based on LLM_API calling.

class LLMResponse(**data)[source]#

Bases: BaseResponse, BaseLLMScriptFunction

Basic function for receiving LLM responses. Uses prompt to produce result from model.

message_schema: Union[None, Type[Message], Type[BaseModel]]#

Schema for model output validation.

history: int#

Number of dialogue turns aside from the current one to keep in history. -1 for full history.

async call(ctx)[source]#

Implement this to create a custom function.

Return type:

Message