Class SessionCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class SessionCreateParams.Body.Builder
A builder for Body.
-
-
Method Summary
-
-
Method Detail
-
user
final SessionCreateParams.Body.Builder user(String user)
A free-form string that identifies your end user; ensures this Session can access other objects that have the same
user
scope.
-
user
final SessionCreateParams.Body.Builder user(JsonField<String> user)
Sets Builder.user to an arbitrary JSON value.
You should usually call Builder.user with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workflow
final SessionCreateParams.Body.Builder workflow(ChatSessionWorkflowParam workflow)
Workflow that powers the session.
-
workflow
final SessionCreateParams.Body.Builder workflow(JsonField<ChatSessionWorkflowParam> workflow)
Sets Builder.workflow to an arbitrary JSON value.
You should usually call Builder.workflow with a well-typed ChatSessionWorkflowParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
chatkitConfiguration
final SessionCreateParams.Body.Builder chatkitConfiguration(ChatSessionChatKitConfigurationParam chatkitConfiguration)
Optional overrides for ChatKit runtime configuration features
-
chatkitConfiguration
final SessionCreateParams.Body.Builder chatkitConfiguration(JsonField<ChatSessionChatKitConfigurationParam> chatkitConfiguration)
Sets Builder.chatkitConfiguration to an arbitrary JSON value.
You should usually call Builder.chatkitConfiguration with a well-typed ChatSessionChatKitConfigurationParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiresAfter
final SessionCreateParams.Body.Builder expiresAfter(ChatSessionExpiresAfterParam expiresAfter)
Optional override for session expiration timing in seconds from creation. Defaults to 10 minutes.
-
expiresAfter
final SessionCreateParams.Body.Builder expiresAfter(JsonField<ChatSessionExpiresAfterParam> expiresAfter)
Sets Builder.expiresAfter to an arbitrary JSON value.
You should usually call Builder.expiresAfter with a well-typed ChatSessionExpiresAfterParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rateLimits
final SessionCreateParams.Body.Builder rateLimits(ChatSessionRateLimitsParam rateLimits)
Optional override for per-minute request limits. When omitted, defaults to 10.
-
rateLimits
final SessionCreateParams.Body.Builder rateLimits(JsonField<ChatSessionRateLimitsParam> rateLimits)
Sets Builder.rateLimits to an arbitrary JSON value.
You should usually call Builder.rateLimits with a well-typed ChatSessionRateLimitsParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SessionCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SessionCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SessionCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SessionCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SessionCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SessionCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.user() .workflow()
-
-
-
-