ChatPromptReference

A reference to a value that the user added to their chat request.

Online Documentation

Properties

Link copied to clipboard
abstract val id: String

A unique identifier for this kind of reference.

Link copied to clipboard
abstract val modelDescription: String?

A description of this value that could be used in an LLM prompt.

Link copied to clipboard
abstract val range: Tuple2<JsInt, JsInt>?

The start and end index of the reference in the prompt. When undefined, the reference was not part of the prompt text.

Link copied to clipboard
abstract val value: JsAny

The value of this reference. The string | Uri | Location types are used today, but this could expand in the future.