RequestResponseCallback

data class RequestResponseCallback(val type: RequestResponseType, val created: Instant, val applicationId: ApplicationId, val sessionId: SessionId, val request: JsonElement, val response: () -> JsonElement = { EMPTY_JSON_ELEMENT }, val elapsed: Duration = Duration.ZERO)(source)

Constructors

Link copied to clipboard
constructor(type: RequestResponseType, created: Instant, applicationId: ApplicationId, sessionId: SessionId, request: JsonElement, response: () -> JsonElement = { EMPTY_JSON_ELEMENT }, elapsed: Duration = Duration.ZERO)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val created: Instant
Link copied to clipboard
Link copied to clipboard
val request: JsonElement
Link copied to clipboard
val response: () -> JsonElement
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun toResponseContext(config: Vapi4kConfigImpl, response: JsonElement): ResponseContextImpl