Package ai.reveng.api
Class ConversationsApi
java.lang.Object
ai.reveng.api.ConversationsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCancel an active run Cancels the currently active agentic run for the given conversation.okhttp3.CallcancelRunAsync(UUID id, ApiCallback<StatusResponse> _callback) Cancel an active run (asynchronously) Cancels the currently active agentic run for the given conversation.okhttp3.CallcancelRunCall(UUID id, ApiCallback _callback) Build call for cancelRunCancel an active run Cancels the currently active agentic run for the given conversation.confirmTool(UUID id, ConfirmToolInputBody confirmToolInputBody) Approve or reject a pending tool confirmation Responds to a pending tool confirmation request.okhttp3.CallconfirmToolAsync(UUID id, ConfirmToolInputBody confirmToolInputBody, ApiCallback<StatusResponse> _callback) Approve or reject a pending tool confirmation (asynchronously) Responds to a pending tool confirmation request.okhttp3.CallconfirmToolCall(UUID id, ConfirmToolInputBody confirmToolInputBody, ApiCallback _callback) Build call for confirmToolconfirmToolWithHttpInfo(UUID id, ConfirmToolInputBody confirmToolInputBody) Approve or reject a pending tool confirmation Responds to a pending tool confirmation request.createConversation(CreateConversationRequest createConversationRequest) Create a new conversation Creates a new conversation for the authenticated user.okhttp3.CallcreateConversationAsync(CreateConversationRequest createConversationRequest, ApiCallback<Conversation> _callback) Create a new conversation (asynchronously) Creates a new conversation for the authenticated user.okhttp3.CallcreateConversationCall(CreateConversationRequest createConversationRequest, ApiCallback _callback) Build call for createConversationcreateConversationWithHttpInfo(CreateConversationRequest createConversationRequest) Create a new conversation Creates a new conversation for the authenticated user.getConversation(UUID id) Get a conversation with its events Returns the conversation metadata along with all persisted events.okhttp3.CallgetConversationAsync(UUID id, ApiCallback<ConversationWithEvents> _callback) Get a conversation with its events (asynchronously) Returns the conversation metadata along with all persisted events.okhttp3.CallgetConversationCall(UUID id, ApiCallback _callback) Build call for getConversationGet a conversation with its events Returns the conversation metadata along with all persisted events.intList conversations for the authenticated user Returns all conversations owned by the authenticated user, ordered by most recently updated.okhttp3.CalllistConversationsAsync(ApiCallback<List<Conversation>> _callback) List conversations for the authenticated user (asynchronously) Returns all conversations owned by the authenticated user, ordered by most recently updated.okhttp3.CalllistConversationsCall(ApiCallback _callback) Build call for listConversationsList conversations for the authenticated user Returns all conversations owned by the authenticated user, ordered by most recently updated.sendMessage(UUID id, SendMessageRequest sendMessageRequest) Send a message and start an agentic run Sends a user message to the conversation and kicks off an agentic processing loop in the background.okhttp3.CallsendMessageAsync(UUID id, SendMessageRequest sendMessageRequest, ApiCallback<StatusResponse> _callback) Send a message and start an agentic run (asynchronously) Sends a user message to the conversation and kicks off an agentic processing loop in the background.okhttp3.CallsendMessageCall(UUID id, SendMessageRequest sendMessageRequest, ApiCallback _callback) Build call for sendMessagesendMessageWithHttpInfo(UUID id, SendMessageRequest sendMessageRequest) Send a message and start an agentic run Sends a user message to the conversation and kicks off an agentic processing loop in the background.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) streamEvents(UUID id, Long lastEventId) Stream conversation events (SSE) Opens a Server-Sent Events stream for the given conversation.okhttp3.CallstreamEventsAsync(UUID id, Long lastEventId, ApiCallback<List<ServerSentEventsInner>> _callback) Stream conversation events (SSE) (asynchronously) Opens a Server-Sent Events stream for the given conversation.okhttp3.CallstreamEventsCall(UUID id, Long lastEventId, ApiCallback _callback) Build call for streamEventsstreamEventsWithHttpInfo(UUID id, Long lastEventId) Stream conversation events (SSE) Opens a Server-Sent Events stream for the given conversation.
-
Constructor Details
-
ConversationsApi
public ConversationsApi() -
ConversationsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
cancelRunCall
Build call for cancelRun- Parameters:
id- Conversation UUID (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
cancelRun
Cancel an active run Cancels the currently active agentic run for the given conversation. Returns 404 if no run is in progress. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `404` [`NO_ACTIVE_RUN`](/errors/NO_ACTIVE_RUN) — No Active Run- Parameters:
id- Conversation UUID (required)- Returns:
- StatusResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
cancelRunWithHttpInfo
Cancel an active run Cancels the currently active agentic run for the given conversation. Returns 404 if no run is in progress. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `404` [`NO_ACTIVE_RUN`](/errors/NO_ACTIVE_RUN) — No Active Run- Parameters:
id- Conversation UUID (required)- Returns:
- ApiResponse<StatusResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
cancelRunAsync
public okhttp3.Call cancelRunAsync(@Nonnull UUID id, ApiCallback<StatusResponse> _callback) throws ApiException Cancel an active run (asynchronously) Cancels the currently active agentic run for the given conversation. Returns 404 if no run is in progress. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `404` [`NO_ACTIVE_RUN`](/errors/NO_ACTIVE_RUN) — No Active Run- Parameters:
id- Conversation UUID (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
confirmToolCall
public okhttp3.Call confirmToolCall(@Nonnull UUID id, @Nonnull ConfirmToolInputBody confirmToolInputBody, ApiCallback _callback) throws ApiException Build call for confirmTool- Parameters:
id- Conversation UUID (required)confirmToolInputBody- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
confirmTool
public StatusResponse confirmTool(@Nonnull UUID id, @Nonnull ConfirmToolInputBody confirmToolInputBody) throws ApiException Approve or reject a pending tool confirmation Responds to a pending tool confirmation request. The agent pauses before executing certain tools and emits a `TOOL_CONFIRMATION_REQUIRED` event. Use this endpoint to approve or reject the tool call. Returns 404 if no confirmation is pending. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `404` [`NO_PENDING_CONFIRMATION`](/errors/NO_PENDING_CONFIRMATION) — No Pending Confirmation- Parameters:
id- Conversation UUID (required)confirmToolInputBody- (required)- Returns:
- StatusResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
confirmToolWithHttpInfo
public ApiResponse<StatusResponse> confirmToolWithHttpInfo(@Nonnull UUID id, @Nonnull ConfirmToolInputBody confirmToolInputBody) throws ApiException Approve or reject a pending tool confirmation Responds to a pending tool confirmation request. The agent pauses before executing certain tools and emits a `TOOL_CONFIRMATION_REQUIRED` event. Use this endpoint to approve or reject the tool call. Returns 404 if no confirmation is pending. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `404` [`NO_PENDING_CONFIRMATION`](/errors/NO_PENDING_CONFIRMATION) — No Pending Confirmation- Parameters:
id- Conversation UUID (required)confirmToolInputBody- (required)- Returns:
- ApiResponse<StatusResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
confirmToolAsync
public okhttp3.Call confirmToolAsync(@Nonnull UUID id, @Nonnull ConfirmToolInputBody confirmToolInputBody, ApiCallback<StatusResponse> _callback) throws ApiException Approve or reject a pending tool confirmation (asynchronously) Responds to a pending tool confirmation request. The agent pauses before executing certain tools and emits a `TOOL_CONFIRMATION_REQUIRED` event. Use this endpoint to approve or reject the tool call. Returns 404 if no confirmation is pending. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `404` [`NO_PENDING_CONFIRMATION`](/errors/NO_PENDING_CONFIRMATION) — No Pending Confirmation- Parameters:
id- Conversation UUID (required)confirmToolInputBody- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
createConversationCall
public okhttp3.Call createConversationCall(@Nonnull CreateConversationRequest createConversationRequest, ApiCallback _callback) throws ApiException Build call for createConversation- Parameters:
createConversationRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 201 Created - 400 Bad Request - 422 Unprocessable Entity - 500 Internal Server Error -
-
createConversation
public Conversation createConversation(@Nonnull CreateConversationRequest createConversationRequest) throws ApiException Create a new conversation Creates a new conversation for the authenticated user. Optionally include a binary analysis context to scope the assistant to a specific analysis. **Error codes:** - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request- Parameters:
createConversationRequest- (required)- Returns:
- Conversation
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 201 Created - 400 Bad Request - 422 Unprocessable Entity - 500 Internal Server Error -
-
createConversationWithHttpInfo
public ApiResponse<Conversation> createConversationWithHttpInfo(@Nonnull CreateConversationRequest createConversationRequest) throws ApiException Create a new conversation Creates a new conversation for the authenticated user. Optionally include a binary analysis context to scope the assistant to a specific analysis. **Error codes:** - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request- Parameters:
createConversationRequest- (required)- Returns:
- ApiResponse<Conversation>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 201 Created - 400 Bad Request - 422 Unprocessable Entity - 500 Internal Server Error -
-
createConversationAsync
public okhttp3.Call createConversationAsync(@Nonnull CreateConversationRequest createConversationRequest, ApiCallback<Conversation> _callback) throws ApiException Create a new conversation (asynchronously) Creates a new conversation for the authenticated user. Optionally include a binary analysis context to scope the assistant to a specific analysis. **Error codes:** - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request- Parameters:
createConversationRequest- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 201 Created - 400 Bad Request - 422 Unprocessable Entity - 500 Internal Server Error -
-
getConversationCall
public okhttp3.Call getConversationCall(@Nonnull UUID id, ApiCallback _callback) throws ApiException Build call for getConversation- Parameters:
id- Conversation UUID (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
getConversation
Get a conversation with its events Returns the conversation metadata along with all persisted events. Useful for reconstructing the full conversation history on page load. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found- Parameters:
id- Conversation UUID (required)- Returns:
- ConversationWithEvents
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
getConversationWithHttpInfo
public ApiResponse<ConversationWithEvents> getConversationWithHttpInfo(@Nonnull UUID id) throws ApiException Get a conversation with its events Returns the conversation metadata along with all persisted events. Useful for reconstructing the full conversation history on page load. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found- Parameters:
id- Conversation UUID (required)- Returns:
- ApiResponse<ConversationWithEvents>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
getConversationAsync
public okhttp3.Call getConversationAsync(@Nonnull UUID id, ApiCallback<ConversationWithEvents> _callback) throws ApiException Get a conversation with its events (asynchronously) Returns the conversation metadata along with all persisted events. Useful for reconstructing the full conversation history on page load. **Error codes:** - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found- Parameters:
id- Conversation UUID (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 400 Bad Request - 404 Not Found - 422 Unprocessable Entity - 500 Internal Server Error -
-
listConversationsCall
Build call for listConversations- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 0 Error -
-
listConversations
List conversations for the authenticated user Returns all conversations owned by the authenticated user, ordered by most recently updated.- Returns:
- List<Conversation>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 0 Error -
-
listConversationsWithHttpInfo
List conversations for the authenticated user Returns all conversations owned by the authenticated user, ordered by most recently updated.- Returns:
- ApiResponse<List<Conversation>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 0 Error -
-
listConversationsAsync
public okhttp3.Call listConversationsAsync(ApiCallback<List<Conversation>> _callback) throws ApiException List conversations for the authenticated user (asynchronously) Returns all conversations owned by the authenticated user, ordered by most recently updated.- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 0 Error -
-
sendMessageCall
public okhttp3.Call sendMessageCall(@Nonnull UUID id, @Nonnull SendMessageRequest sendMessageRequest, ApiCallback _callback) throws ApiException Build call for sendMessage- Parameters:
id- Conversation UUID (required)sendMessageRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 202 Accepted - 400 Bad Request - 402 Payment Required - 403 Forbidden - 404 Not Found - 409 Conflict - 422 Unprocessable Entity - 500 Internal Server Error -
-
sendMessage
public StatusResponse sendMessage(@Nonnull UUID id, @Nonnull SendMessageRequest sendMessageRequest) throws ApiException Send a message and start an agentic run Sends a user message to the conversation and kicks off an agentic processing loop in the background. Returns immediately with 202 Accepted. Subscribe to `/v2/conversations/{id}/events` via SSE to receive real-time updates including text deltas, tool calls, and run lifecycle events. **Error codes:** - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `402` [`INSUFFICIENT_CREDITS`](/errors/INSUFFICIENT_CREDITS) — Insufficient Credits - `409` [`RUN_ALREADY_ACTIVE`](/errors/RUN_ALREADY_ACTIVE) — Run Already Active- Parameters:
id- Conversation UUID (required)sendMessageRequest- (required)- Returns:
- StatusResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 202 Accepted - 400 Bad Request - 402 Payment Required - 403 Forbidden - 404 Not Found - 409 Conflict - 422 Unprocessable Entity - 500 Internal Server Error -
-
sendMessageWithHttpInfo
public ApiResponse<StatusResponse> sendMessageWithHttpInfo(@Nonnull UUID id, @Nonnull SendMessageRequest sendMessageRequest) throws ApiException Send a message and start an agentic run Sends a user message to the conversation and kicks off an agentic processing loop in the background. Returns immediately with 202 Accepted. Subscribe to `/v2/conversations/{id}/events` via SSE to receive real-time updates including text deltas, tool calls, and run lifecycle events. **Error codes:** - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `402` [`INSUFFICIENT_CREDITS`](/errors/INSUFFICIENT_CREDITS) — Insufficient Credits - `409` [`RUN_ALREADY_ACTIVE`](/errors/RUN_ALREADY_ACTIVE) — Run Already Active- Parameters:
id- Conversation UUID (required)sendMessageRequest- (required)- Returns:
- ApiResponse<StatusResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 202 Accepted - 400 Bad Request - 402 Payment Required - 403 Forbidden - 404 Not Found - 409 Conflict - 422 Unprocessable Entity - 500 Internal Server Error -
-
sendMessageAsync
public okhttp3.Call sendMessageAsync(@Nonnull UUID id, @Nonnull SendMessageRequest sendMessageRequest, ApiCallback<StatusResponse> _callback) throws ApiException Send a message and start an agentic run (asynchronously) Sends a user message to the conversation and kicks off an agentic processing loop in the background. Returns immediately with 202 Accepted. Subscribe to `/v2/conversations/{id}/events` via SSE to receive real-time updates including text deltas, tool calls, and run lifecycle events. **Error codes:** - `400` [`BAD_REQUEST`](/errors/BAD_REQUEST) — Bad Request - `400` [`INVALID_CONVERSATION_ID`](/errors/INVALID_CONVERSATION_ID) — Invalid Conversation ID - `404` [`CONVERSATION_NOT_FOUND`](/errors/CONVERSATION_NOT_FOUND) — Conversation Not Found - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `402` [`INSUFFICIENT_CREDITS`](/errors/INSUFFICIENT_CREDITS) — Insufficient Credits - `409` [`RUN_ALREADY_ACTIVE`](/errors/RUN_ALREADY_ACTIVE) — Run Already Active- Parameters:
id- Conversation UUID (required)sendMessageRequest- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 202 Accepted - 400 Bad Request - 402 Payment Required - 403 Forbidden - 404 Not Found - 409 Conflict - 422 Unprocessable Entity - 500 Internal Server Error -
-
streamEventsCall
public okhttp3.Call streamEventsCall(@Nonnull UUID id, @Nullable Long lastEventId, ApiCallback _callback) throws ApiException Build call for streamEvents- Parameters:
id- Conversation UUID (required)lastEventId- Replay events after this ID (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 0 Error -
-
streamEvents
public List<ServerSentEventsInner> streamEvents(@Nonnull UUID id, @Nullable Long lastEventId) throws ApiException Stream conversation events (SSE) Opens a Server-Sent Events stream for the given conversation. Events include run lifecycle updates, streaming text deltas, tool call progress, and more. Use the `last_event_id` query parameter to replay missed events after a reconnection.- Parameters:
id- Conversation UUID (required)lastEventId- Replay events after this ID (optional)- Returns:
- List<ServerSentEventsInner>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 0 Error -
-
streamEventsWithHttpInfo
public ApiResponse<List<ServerSentEventsInner>> streamEventsWithHttpInfo(@Nonnull UUID id, @Nullable Long lastEventId) throws ApiException Stream conversation events (SSE) Opens a Server-Sent Events stream for the given conversation. Events include run lifecycle updates, streaming text deltas, tool call progress, and more. Use the `last_event_id` query parameter to replay missed events after a reconnection.- Parameters:
id- Conversation UUID (required)lastEventId- Replay events after this ID (optional)- Returns:
- ApiResponse<List<ServerSentEventsInner>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 0 Error -
-
streamEventsAsync
public okhttp3.Call streamEventsAsync(@Nonnull UUID id, @Nullable Long lastEventId, ApiCallback<List<ServerSentEventsInner>> _callback) throws ApiException Stream conversation events (SSE) (asynchronously) Opens a Server-Sent Events stream for the given conversation. Events include run lifecycle updates, streaming text deltas, tool call progress, and more. Use the `last_event_id` query parameter to replay missed events after a reconnection.- Parameters:
id- Conversation UUID (required)lastEventId- Replay events after this ID (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 OK - 0 Error -
-