OpenAI::CreateChatSessionBody
Inherits JSON::Serializable < Reference < Object
Parameters for provisioning a new ChatKit session.
Constructors
new(pull : JSON::PullParser)
Sourcenew(workflow : WorkflowParam = WorkflowParam.new, user : String = "", expires_after : ExpiresAfterParam | Nil = nil, rate_limits : RateLimitsParam | Nil = nil, chatkit_configuration : ChatkitConfigurationParam | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
chatkit_configuration=(chatkit_configuration : ChatkitConfigurationParam | Nil)
Optional overrides for ChatKit runtime configuration features
expires_after
Optional override for session expiration timing in seconds from creation. Defaults to 10 minutes.
expires_after=(expires_after : ExpiresAfterParam | Nil)
Optional override for session expiration timing in seconds from creation. Defaults to 10 minutes.
rate_limits=(rate_limits : RateLimitsParam | Nil)
Optional override for per-minute request limits. When omitted, defaults to 10.
user
A free-form string that identifies your end user; ensures this Session can access other objects that have the same user scope.
user=(user : String)
A free-form string that identifies your end user; ensures this Session can access other objects that have the same user scope.
validate!
Source