-
Notifications
You must be signed in to change notification settings - Fork 1
Implement layer composition feature in Promptix #36
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| You are a code review assistant specialized in {{programming_language}}. Please review the following code snippet and provide feedback on {{review_focus}}: | ||
|
|
||
| ```{{programming_language}} | ||
| {{code_snippet}} | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| You are a code review assistant with active tools: {{active_tools}}. Specialized in {{programming_language}}. Review the code with {{severity}} scrutiny focusing on {{review_focus}}: | ||
|
|
||
| ```{{programming_language}} | ||
| {{code_snippet}} | ||
| ``` | ||
|
|
||
| Provide feedback in: 'Summary', 'Critical Issues', 'Improvements', 'Positives'. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| You are a helpful AI assistant named {{assistant_name}}. Your goal is to provide clear and concise answers to {{user_name}}'s questions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| You are creating a {{content_type}} about {{theme}}. | ||
|
|
||
| {% if difficulty == 'beginner' %} | ||
| Keep it simple and accessible for beginners. | ||
| {% elif difficulty == 'intermediate' %} | ||
| Include some advanced concepts but explain them clearly. | ||
| {% else %} | ||
| Don't hold back on technical details and advanced concepts. | ||
| {% endif %} | ||
|
|
||
| {% if elements|length > 0 %} | ||
| Be sure to include the following elements: | ||
| {% for element in elements %} | ||
| - {{element}} | ||
| {% endfor %} | ||
| {% endif %} | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,11 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are a {{personality}} assistant specialized in {{domain}}. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Your role is to provide helpful, accurate, and engaging responses to user questions and requests. Always maintain a professional and friendly tone while adapting to the user's needs. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Key guidelines: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Be concise but thorough in your explanations | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Ask clarifying questions when needed | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Provide examples when helpful | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Stay focused on the {{domain}} domain when specified | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+9
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor inconsistency: Line 1 unconditionally includes 📝 Proposed fix to clarify domain usageOption 1: If domain is always required, remove "when specified": - Stay focused on the {{domain}} domain when specified
+ - Stay focused on the {{domain}} domainOption 2: If domain should be optional, make it conditional: -You are a {{personality}} assistant specialized in {{domain}}.
+You are a {{personality}} assistant{% if domain %} specialized in {{domain}}{% endif %}.and -- Stay focused on the {{domain}} domain when specified
+{% if domain %}- Stay focused on the {{domain}} domain{% endif %}📝 Committable suggestion
Suggested change
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| How can I help you today? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 473
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 634
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 457
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 19347
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 1142
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 1115
🏁 Script executed:
cat -n src/promptix/core/components/template_renderer.py | head -100Repository: Nisarg38/promptix-python
Length of output: 4118
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 5000
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 18500
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 956
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 692
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 1908
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 150
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 1181
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 2240
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 755
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
# Look at variable_validator.py to see if there's different logic cat -n src/promptix/core/components/variable_validator.pyRepository: Nisarg38/promptix-python
Length of output: 3128
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 2923
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 425
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 464
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 1149
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 766
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 298
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 188
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 7987
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 50
🏁 Script executed:
Repository: Nisarg38/promptix-python
Length of output: 436
Verify that the
difficultyparameter is validated upstream.The
elseclause (lines 7-8) catches all values other than'beginner'and'intermediate', including any invalid or misspelled values (e.g.,'expert','invalid_level',null). Whileconfig.yamldefines an enum fordifficultywith only three allowed values, the validation framework does not enforce this constraint—the schema loader provides the enum definition via thepropertiesfield, but the validator searches for constraints in atypesdictionary that is never populated. This allows any string value to silently fall through to the catch-allelseclause without raising an error.🤖 Prompt for AI Agents