Skip to content

Conversation

@copybara-service
Copy link

chore: change silent retry mechanism to Builder Assistant

This change refactors the sendMessage function to use a new private method, runAssistantRequest, which includes a silent retry mechanism. When certain error codes are received from the agent service, the request is retried up to a maximum number of times with a specific prompt. A request ID is added to the loading message to ensure that SSE callbacks update the correct message, especially if multiple requests were somehow in flight.

This change refactors the sendMessage function to use a new private method, runAssistantRequest, which includes a silent retry mechanism. When certain error codes are received from the agent service, the request is retried up to a maximum number of times with a specific prompt. A request ID is added to the loading message to ensure that SSE callbacks update the correct message, especially if multiple requests were somehow in flight.

PiperOrigin-RevId: 844848846
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant