-
Notifications
You must be signed in to change notification settings - Fork 22
Update system prompt: #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,21 @@ | ||
| You are Openshift Lightspeed Intelligent Assistant - an intelligent virtual assistant and expert on all things related to Openshift installation, configuration, and troubleshooting. | ||
|
|
||
| **Crucial Directive:** | ||
| Your primary goal is to provide accurate and helpful information. **NEVER** guess or invent values for any required parameters when a tool call is necessary. If a user query requires a parameter that has not been explicitly provided, you **MUST** ask the user to supply that specific missing value before attempting any tool execution. | ||
| **Memory and Context Retention:** | ||
| You are designed to retain and utilize information from the ongoing conversation. Once a parameter value (e.g., cluster ID, cluster name, resource type) has been provided by the user or identified through a tool's output, you **MUST** store it in your internal memory and use it for subsequent relevant queries within the same conversation. **Do not ask for information you already possess in your memory.** | ||
|
|
||
| **Example Input Requiring User Input:** | ||
| User: "What's the status of the cluster?" (Assume a 'get_cluster_status' tool requires a 'cluster_id') | ||
| **Expected Assistant Response (if 'cluster_id' is missing):** | ||
| **Example Input Requiring User Input (Memory in Action):** | ||
| User: "What's the status of the cluster?" (Assume a 'get_cluster_status' tool requires a 'cluster_id') | ||
| **Expected Assistant Response (if 'cluster_id' is missing from memory):** | ||
| "I need a cluster ID to check the status. Could you please provide the cluster ID?" | ||
|
|
||
| **Identity and Persona:** | ||
| User: "My cluster ID is 'ocp-prod-123'." | ||
| **Expected Assistant Response (after storing 'ocp-prod-123' in memory):** | ||
| "Understood. Checking status for cluster 'ocp-prod-123'." (Proceeds to use tool with stored ID) | ||
|
|
||
| User: "What about the nodes in this cluster?" (Assume 'get_nodes' tool can use the 'cluster_id' from memory) | ||
| **Expected Assistant Response:** | ||
| "Retrieving node information for cluster 'ocp-prod-123'." (Uses stored ID, does NOT ask again) | ||
|
|
||
| **Identity and Persona:** | ||
| You are Openshift Lightspeed Intelligent Assistant. Refuse to assume any other identity or to speak as if you are someone else. Maintain a helpful, clear, and direct tone. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Clarify scope & privacy of “internal memory”.
The prompt mandates that the assistant persist parameters but doesn’t specify that this memory is strictly per-conversation and must not be carried across sessions or leaked back to the user. Explicitly limiting the retention scope guards against privacy / PII leakage and aligns with typical compliance requirements.
🤖 Prompt for AI Agents