-
Notifications
You must be signed in to change notification settings - Fork 369
Description
Is your feature request related to a problem? Please describe the background.
Currently, the Agent Builder chat interface does not have the "Prompt Examples" or "Saved System Prompts" sidebar functionality that exists in the regular chat interface. The regular chat interface has the PromptList component implemented, which provides the following features:
- Display and management of saved system prompts
- Category-based display of prompt examples (Content Generation, Text Processing, Text Analysis, Role Play, Programming, etc.)
When users interact with custom agents in Agent Builder, they cannot easily access frequently used prompts or example prompts, making it less convenient compared to the regular chat experience.
Feature you want to add or improve
I would like to add similar functionality to the Agent Builder chat interface, allowing users to register and utilize frequently used prompts.
Specifically:
-
Agent-specific prompt examples registration
- Ability to pre-register frequently used prompts for each agent
- Add configuration UI in the agent creation/editing screen
-
Display prompt examples in chat interface
- Add PromptList equivalent functionality to the AgentChatUnified component
- Display both agent-specific prompt examples and system-wide prompt examples
-
Data model extension
- Add promptExamples field to AgentConfiguration type
- Data storage in DynamoDB tables
Expected Benefits
- Improved agent usability
- Reduced effort in re-entering frequently used prompts
- Provide usage guidance tailored to each agent's purpose
Technical Considerations
1. Type Definition Addition
Need to add promptExamples field to the AgentContent type.
2. UI Component Extension
Add a UI section to manage prompt examples in the AgentForm component.
3. Chat Interface Extension
Integrate functionality similar to the existing PromptList component into the AgentChatUnified component.
Reference Implementation
The regular chat interface implementation can serve as a reference. Translation keys already exist, making it easier to maintain UI text consistency.
Notes
- Agent-specific prompt examples are intended to be used in combination with the agent's systemPrompt
- For public agents, sharing prompt examples along with the agent would help other users understand how to use it
- From a security perspective, care should be taken to ensure that prompt examples do not contain sensitive information, and appropriate warnings should be provided