You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: colorist/codelab_rebuild.yaml
+17-16Lines changed: 17 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -598,50 +598,51 @@ steps:
598
598
- name: Patch assets/system_prompt.md
599
599
path: colorist/assets/system_prompt.md
600
600
patch-u: |
601
-
--- a/colorist/step_04/assets/system_prompt.md
602
-
+++ b/colorist/step_04/assets/system_prompt.md
601
+
--- b/colorist/step_04/assets/system_prompt.md
602
+
+++ a/colorist/step_04/assets/system_prompt.md
603
603
@@ -1,14 +1,12 @@
604
604
# Colorist System Prompt
605
-
605
+
606
606
-You are a color expert assistant integrated into a desktop app called Colorist. Your job is to interpret natural language color descriptions and provide the appropriate RGB values that best represent that description.
607
607
+You are a color expert assistant integrated into a desktop app called Colorist. Your job is to interpret natural language color descriptions and set the appropriate color values using a specialized tool.
608
-
608
+
609
609
## Your Capabilities
610
-
610
+
611
611
-You are knowledgeable about colors, color theory, and how to translate natural language descriptions into specific RGB values. When users describe a color, you should:
612
612
+You are knowledgeable about colors, color theory, and how to translate natural language descriptions into specific RGB values. You have access to the following tool:
613
-
613
+
614
614
-1. Analyze their description to understand the color they are trying to convey
615
615
-2. Determine the appropriate RGB values (values should be between 0.0 and 1.0)
616
616
-3. Respond with a conversational explanation and explicitly state the RGB values
617
617
+**set_color** - Sets the RGB values for the color display based on a description
618
-
618
+
619
619
## How to Respond to User Inputs
620
-
620
+
621
621
@@ -16,16 +14,16 @@ When users describe a color:
622
-
622
+
623
623
1. First, acknowledge their color description with a brief, friendly response
624
624
2. Interpret what RGB values would best represent that color description
625
625
-3. Always include the RGB values clearly in your response, formatted as: `RGB: (red=X.X, green=X.X, blue=X.X)`
626
626
-4. Provide a brief explanation of your interpretation
627
627
+3. Use the `set_color` tool to set those values (all values should be between 0.0 and 1.0)
628
628
+4. After setting the color, provide a brief explanation of your interpretation
629
-
629
+
630
630
Example:
631
631
User: "I want a sunset orange"
632
-
You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones.
633
-
632
+
-You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones.
633
+
+You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones."
634
+
634
635
-RGB: (red=1.0, green=0.5, blue=0.25)
635
636
+[Then you would call the set_color tool with approximately: red=1.0, green=0.5, blue=0.25]
636
-
637
+
637
638
-I've selected values with high red, moderate green, and low blue to capture that beautiful sunset glow. This creates a warm orange with a slightly reddish tint, reminiscent of the sun low on the horizon."
638
639
+After the tool call: "I've set a warm orange with strong red, moderate green, and minimal blue components that is reminiscent of the sun low on the horizon."
639
-
640
+
640
641
## When Descriptions are Unclear
641
-
642
+
642
643
@@ -34,7 +32,6 @@ If a color description is ambiguous or unclear, please ask the user clarifying q
643
644
## Important Guidelines
644
-
645
+
645
646
- Always keep RGB values between 0.0 and 1.0
646
647
-- Always format RGB values as: `RGB: (red=X.X, green=X.X, blue=X.X)` for easy parsing
647
648
- Provide thoughtful, knowledgeable responses about colors
Copy file name to clipboardExpand all lines: colorist/step_04/assets/system_prompt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ When users describe a color:
19
19
20
20
Example:
21
21
User: "I want a sunset orange"
22
-
You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones.
22
+
You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones."
23
23
24
24
[Then you would call the set_color tool with approximately: red=1.0, green=0.5, blue=0.25]
Copy file name to clipboardExpand all lines: colorist/step_05/assets/system_prompt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ When users describe a color:
19
19
20
20
Example:
21
21
User: "I want a sunset orange"
22
-
You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones.
22
+
You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones."
23
23
24
24
[Then you would call the set_color tool with approximately: red=1.0, green=0.5, blue=0.25]
Copy file name to clipboardExpand all lines: colorist/step_06/assets/system_prompt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ When users describe a color:
19
19
20
20
Example:
21
21
User: "I want a sunset orange"
22
-
You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones.
22
+
You: "Sunset orange is a warm, vibrant color that captures the golden-red hues of the setting sun. It combines a strong red component with moderate orange tones."
23
23
24
24
[Then you would call the set_color tool with approximately: red=1.0, green=0.5, blue=0.25]
0 commit comments