Skip to content

Commit bae04be

Browse files
committed
Fix up prompt and update deps
1 parent 4cd3945 commit bae04be

File tree

12 files changed

+28
-27
lines changed

12 files changed

+28
-27
lines changed

colorist/codelab_rebuild.yaml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -598,50 +598,51 @@ steps:
598598
- name: Patch assets/system_prompt.md
599599
path: colorist/assets/system_prompt.md
600600
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
603603
@@ -1,14 +1,12 @@
604604
# Colorist System Prompt
605-
605+
606606
-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.
607607
+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+
609609
## Your Capabilities
610-
610+
611611
-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:
612612
+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+
614614
-1. Analyze their description to understand the color they are trying to convey
615615
-2. Determine the appropriate RGB values (values should be between 0.0 and 1.0)
616616
-3. Respond with a conversational explanation and explicitly state the RGB values
617617
+**set_color** - Sets the RGB values for the color display based on a description
618-
618+
619619
## How to Respond to User Inputs
620-
620+
621621
@@ -16,16 +14,16 @@ When users describe a color:
622-
622+
623623
1. First, acknowledge their color description with a brief, friendly response
624624
2. Interpret what RGB values would best represent that color description
625625
-3. Always include the RGB values clearly in your response, formatted as: `RGB: (red=X.X, green=X.X, blue=X.X)`
626626
-4. Provide a brief explanation of your interpretation
627627
+3. Use the `set_color` tool to set those values (all values should be between 0.0 and 1.0)
628628
+4. After setting the color, provide a brief explanation of your interpretation
629-
629+
630630
Example:
631631
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+
634635
-RGB: (red=1.0, green=0.5, blue=0.25)
635636
+[Then you would call the set_color tool with approximately: red=1.0, green=0.5, blue=0.25]
636-
637+
637638
-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."
638639
+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+
640641
## When Descriptions are Unclear
641-
642+
642643
@@ -34,7 +32,6 @@ If a color description is ambiguous or unclear, please ask the user clarifying q
643644
## Important Guidelines
644-
645+
645646
- Always keep RGB values between 0.0 and 1.0
646647
-- Always format RGB values as: `RGB: (red=X.X, green=X.X, blue=X.X)` for easy parsing
647648
- Provide thoughtful, knowledgeable responses about colors

colorist/step_01/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
colorist_ui: ^0.0.5
12+
colorist_ui: ^0.0.6
1313
flutter_riverpod: ^2.6.1
1414
logging: ^1.3.0
1515
riverpod_annotation: ^2.6.1

colorist/step_02/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
colorist_ui: ^0.0.5
12+
colorist_ui: ^0.0.6
1313
flutter_riverpod: ^2.6.1
1414
logging: ^1.3.0
1515
riverpod_annotation: ^2.6.1

colorist/step_03/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
colorist_ui: ^0.0.5
12+
colorist_ui: ^0.0.6
1313
flutter_riverpod: ^2.6.1
1414
logging: ^1.3.0
1515
riverpod_annotation: ^2.6.1

colorist/step_04/assets/system_prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ When users describe a color:
1919

2020
Example:
2121
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."
2323

2424
[Then you would call the set_color tool with approximately: red=1.0, green=0.5, blue=0.25]
2525

colorist/step_04/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
colorist_ui: ^0.0.5
12+
colorist_ui: ^0.0.6
1313
flutter_riverpod: ^2.6.1
1414
logging: ^1.3.0
1515
riverpod_annotation: ^2.6.1

colorist/step_05/assets/system_prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ When users describe a color:
1919

2020
Example:
2121
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."
2323

2424
[Then you would call the set_color tool with approximately: red=1.0, green=0.5, blue=0.25]
2525

colorist/step_05/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
colorist_ui: ^0.0.5
12+
colorist_ui: ^0.0.6
1313
flutter_riverpod: ^2.6.1
1414
logging: ^1.3.0
1515
riverpod_annotation: ^2.6.1

colorist/step_06/assets/system_prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ When users describe a color:
1919

2020
Example:
2121
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."
2323

2424
[Then you would call the set_color tool with approximately: red=1.0, green=0.5, blue=0.25]
2525

colorist/step_06/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
colorist_ui: ^0.0.5
12+
colorist_ui: ^0.0.6
1313
flutter_riverpod: ^2.6.1
1414
logging: ^1.3.0
1515
riverpod_annotation: ^2.6.1

0 commit comments

Comments
 (0)