CompletionRequest

@Serializable
data class CompletionRequest(val requestId: String, val issuer: String, val documents: List<Document>, val parameters: Map<String, String>, val chatId: String, val agent: String? = null)

Request to get a completion response from the AI Assistant.

Constructors

Link copied to clipboard
constructor(requestId: String, issuer: String, documents: List<Document>, parameters: Map<String, String>, chatId: String, agent: String? = null)

Properties

Link copied to clipboard

The optional agent identifier to use for this request.

Link copied to clipboard

A unique identifier for the chat conversation.

Link copied to clipboard

The list of documents to include in the context.

Link copied to clipboard

The issuer of the request (e.g., "user", "system").

Link copied to clipboard

Additional parameters for the completion request as key-value pairs.

Link copied to clipboard

A unique identifier for this request.

Functions

Link copied to clipboard

Converts this request to a JSON object for network transmission.