Skip to content

Use environment variable for default agent card URL and implement message deduplication to add streaming support#2

Open
alamkanak wants to merge 1 commit intoa2anet:mainfrom
EmergenceAI:raquib/fix-message-id
Open

Use environment variable for default agent card URL and implement message deduplication to add streaming support#2
alamkanak wants to merge 1 commit intoa2anet:mainfrom
EmergenceAI:raquib/fix-message-id

Conversation

@alamkanak
Copy link

This pull request introduces two main improvements: it makes the default agent card URL configurable via an environment variable, and it adds deduplication logic to the chat message list to support streaming messages.

Configuration improvements:

  • The default value for the agent card URL in AddAgentModal is now set from the NEXT_PUBLIC_DEFAULT_AGENT_CARDS_URL environment variable, falling back to the previous hardcoded value if the variable is not set. This change affects both the initial state and the reset behavior when the modal is closed.

Chat message deduplication:

  • The chat component now deduplicates messages by messageId, ensuring that only the latest occurrence of each message is shown. Non-message items (such as task dividers, tool-calls, and artifacts) are always included. This allows for streaming messages

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