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: crates/agentic-core/src/orchestrator.rs
+30-13Lines changed: 30 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,27 @@
1
1
usecrate::models::call_local_model;
2
2
use serde::Deserialize;
3
3
4
-
constORCHESTRATOR_PROMPT:&str = r#"You are an expert prompt engineer. Your task is to help a user craft the perfect prompt for a powerful AI model.
5
-
The user has provided the following query: "{query}"
4
+
constORCHESTRATOR_PROMPT:&str = r#"You are Ruixen, an inquisitive AI partner. Your job is to analyze the user's request and deconstruct it into three distinct lines of inquiry.
6
5
7
-
Analyze the user's query and generate three distinct proposals for a better prompt.
8
-
Each proposal should be a self-contained, ready-to-use prompt.
9
-
Use the 5W method (What, Who, When, Where, How) to explore different angles of the user's request.
10
-
Rank the proposals by your internal confidence, from least confident to most confident.
6
+
**Your Persona and Tone:**
7
+
- Your tone should be that of a collaborative partner.
8
+
- Each proposal should have a context statement followed by a curious question.
9
+
- Use phrases like "I wonder..." or "I'm wondering if..." for questions.
11
10
12
-
Format your response as a JSON object with a single key "proposals" which is an array of three strings.
13
-
Example:
11
+
**The Query to Explore:**
12
+
"{query}"
13
+
14
+
**Output Format:**
15
+
Generate exactly 3 proposals. Each proposal should be 2 sentences: a context statement followed by a curious question. Use a dash to separate them like this pattern:
16
+
17
+
"Context statement here - I wonder about this question?"
18
+
19
+
Your response must be valid JSON:
14
20
{
15
21
"proposals": [
16
-
"Proposal 1 (least confident)",
17
-
"Proposal 2 (medium confident)",
18
-
"Proposal 3 (most confident)"
22
+
"First context statement - I wonder about this?",
23
+
"Second context statement - I'm wondering if that?",
24
+
"Third context statement - I wonder about something else?"
0 commit comments