Interface SessionService
-
- All Implemented Interfaces:
public interface SessionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
SessionService.WithRawResponse
A view of SessionService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract SessionService.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. abstract SessionService
withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied. ChatSession
create(SessionCreateParams params)
Create a ChatKit session abstract ChatSession
create(SessionCreateParams params, RequestOptions requestOptions)
ChatSession
cancel(String sessionId)
Cancel a ChatKit session ChatSession
cancel(String sessionId, SessionCancelParams params, RequestOptions requestOptions)
ChatSession
cancel(String sessionId, SessionCancelParams params)
abstract ChatSession
cancel(SessionCancelParams params, RequestOptions requestOptions)
ChatSession
cancel(SessionCancelParams params)
ChatSession
cancel(String sessionId, RequestOptions requestOptions)
-
-
Method Detail
-
withRawResponse
abstract SessionService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract SessionService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
ChatSession create(SessionCreateParams params)
Create a ChatKit session
-
create
abstract ChatSession create(SessionCreateParams params, RequestOptions requestOptions)
-
cancel
ChatSession cancel(String sessionId)
Cancel a ChatKit session
-
cancel
ChatSession cancel(String sessionId, SessionCancelParams params, RequestOptions requestOptions)
-
cancel
ChatSession cancel(String sessionId, SessionCancelParams params)
-
cancel
abstract ChatSession cancel(SessionCancelParams params, RequestOptions requestOptions)
-
cancel
ChatSession cancel(SessionCancelParams params)
-
cancel
ChatSession cancel(String sessionId, RequestOptions requestOptions)
-
-
-
-