Skip to content

Conversation

@satti-hari-krishna-reddy
Copy link
Contributor

No description provided.

@satti-hari-krishna-reddy satti-hari-krishna-reddy changed the title WIP feat: migrate support system from Assistant API to Responses API Nov 24, 2025
- Add GetConversationHistory function to retrieve conversation messages with caching support
- Add SetConversationMetadata function to store conversation metadata with timestamps
- Add GetOrgConversations function to fetch all conversations for an organization
- Support both OpenSearch and Datastore backends for conversation queries
- Implement caching layer for conversation history and metadata to improve performance
- Convert QueryInput records to ConversationMessage objects with proper role and content mapping
- Include cache invalidation for org conversations when metadata is updated
- Add proper error handling for empty conversationId and orgId parameters
- Set default limits (100 for history, 50 for org conversations) when not specified
- Comment out legacy getSupportThreadConversation function and handler
- Replace thread-based logic with new getConversationHistoryWithAccess function
- Update response structure from ThreadConversationResponse to ConversationResponse
@satti-hari-krishna-reddy satti-hari-krishna-reddy changed the title feat: migrate support system from Assistant API to Responses API Migrate support system from Assistant API to Responses API Nov 26, 2025
if input.ConversationId == "" {
err = SetConversation(ctx, input)
if err != nil {
log.Printf("[WARNING] Failed to set conversation for query %s (2): %s", input.Query, err)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
Sensitive data returned by an access to Apikey
flows to a logging call.
@frikky frikky merged commit b88ff49 into Shuffle:main Nov 26, 2025
1 of 3 checks passed
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.

2 participants