Skip to main content
Represents a complete chat request for LLM processing. This class stores both messages and available tools for LLM requests, using the same format as the LLM interface to support advanced features like tool calls.

Implements

  • LLMChatRequestInterface

Constructor

new LLMChatRequest(
    llmChatRequest: LLMChatRequestInterface
): LLMChatRequest
Creates a new LLMChatRequest instance.

Parameters

llmChatRequest (LLMChatRequestInterface) The chat request to wrap.

Returns

LLMChatRequest Overrides: AbstractApiDataType.constructor

Properties

messages

readonly messages: LLMMessageInterface[]
The messages to be sent to the LLM. Implementation of: LLMChatRequestInterface.messages

responseFormat (optional)

readonly responseFormat?: ResponseFormatName
The response format to use for the LLM. Implementation of: LLMChatRequestInterface.responseFormat

toolChoice (optional)

readonly toolChoice?: ToolChoiceInterface
The tool choice configuration to use for the LLM. Implementation of: LLMChatRequestInterface.toolChoice

tools (optional)

readonly tools?: ToolInterface[]
The tools available to the LLM. Implementation of: LLMChatRequestInterface.tools