ChatRequest

interface ChatRequest(source)

A request to a chat participant.

Online Documentation

Properties

Link copied to clipboard
abstract val command: String?

The name of the ChatCommand that was selected for this request.

Link copied to clipboard
abstract val model: LanguageModelChat

This is the model that is currently selected in the UI. Extensions can use this or use lm.selectChatModels to pick another model. Don't hold onto this past the lifetime of the request.

Link copied to clipboard
abstract val prompt: String

The prompt as entered by the user.

Link copied to clipboard

The list of references and their values that are referenced in the prompt.

Link copied to clipboard

A token that can be passed to lm.invokeTool when invoking a tool inside the context of handling a chat request. This associates the tool invocation to a chat session.

Link copied to clipboard

The list of tools that the user attached to their request.