-
Notifications
You must be signed in to change notification settings - Fork 22
MGMT-21059: Use Lightspeed-Stack config for system prompt #25
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
Merged
Merged
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
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| 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. | ||
|
|
||
| **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):** | ||
| "I need a cluster ID to check the status. Could you please provide the cluster ID?" | ||
|
|
||
| **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. | ||
Submodule lightspeed-stack
updated
21 files
| +12 −1 | .github/workflows/build_and_push_release.yaml | |
| +19 −1 | README.md | |
| +96 −0 | docs/openapi.json | |
| +38 −0 | src/app/endpoints/authorized.py | |
| +14 −1 | src/app/endpoints/feedback.py | |
| +11 −1 | src/app/endpoints/query.py | |
| +2 −1 | src/app/endpoints/streaming_query.py | |
| +2 −0 | src/app/routers.py | |
| +2 −1 | src/models/config.py | |
| +56 −0 | src/models/responses.py | |
| +19 −3 | src/utils/endpoints.py | |
| +24 −0 | src/utils/types.py | |
| +1 −0 | tests/unit/__init__.py | |
| +54 −0 | tests/unit/app/endpoints/test_authorized.py | |
| +5 −0 | tests/unit/app/endpoints/test_query.py | |
| +5 −0 | tests/unit/app/endpoints/test_streaming_query.py | |
| +3 −1 | tests/unit/app/test_routers.py | |
| +30 −1 | tests/unit/models/test_responses.py | |
| +45 −1 | tests/unit/test_configuration.py | |
| +99 −126 | tests/unit/utils/test_endpoints.py | |
| +48 −0 | tests/unit/utils/test_types.py |
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.
Uh oh!
There was an error while loading. Please reload this page.