class

OpenAI::ChatSessionResource

Inherits JSON::Serializable < Reference < Object

Represents a ChatKit session and its resolved configuration.

Constructors

new(id : String = "", object : ChatSessionResourceObject = ChatSessionResourceObject::ChatkitSession, expires_at : Int64 = 0, client_secret : String = "", workflow : ChatkitWorkflow = ChatkitWorkflow.new, user : String = "", rate_limits : ChatSessionRateLimits = ChatSessionRateLimits.new, max_requests_per_1_minute : Int64 = 0, status : ChatSessionStatus = ChatSessionStatus::Active, chatkit_configuration : ChatSessionChatkitConfiguration = ChatSessionChatkitConfiguration.new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

chatkit_configuration

Resolved ChatKit feature configuration for the session.

Source
chatkit_configuration=(chatkit_configuration : ChatSessionChatkitConfiguration)

Resolved ChatKit feature configuration for the session.

Source
client_secret

Ephemeral client secret that authenticates session requests.

Source
client_secret=(client_secret : String)

Ephemeral client secret that authenticates session requests.

Source
expires_at

Unix timestamp (in seconds) for when the session expires.

Source
expires_at=(expires_at : Int64)

Unix timestamp (in seconds) for when the session expires.

Source
id

Identifier for the ChatKit session.

Source
id=(id : String)

Identifier for the ChatKit session.

Source
max_requests_per_1_minute

Convenience copy of the per-minute request limit.

Source
max_requests_per_1_minute=(max_requests_per_1_minute : Int64)

Convenience copy of the per-minute request limit.

Source
object

Type discriminator that is always chatkit.session.

Source
object=(object : ChatSessionResourceObject)

Type discriminator that is always chatkit.session.

Source
rate_limits

Resolved rate limit values.

Source
rate_limits=(rate_limits : ChatSessionRateLimits)

Resolved rate limit values.

Source
status

Current lifecycle state of the session.

Source
status=(status : ChatSessionStatus)

Current lifecycle state of the session.

Source
user

User identifier associated with the session.

Source
user=(user : String)

User identifier associated with the session.

Source
workflow

Workflow metadata for the session.

Source
workflow=(workflow : ChatkitWorkflow)

Workflow metadata for the session.

Source