File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -169,23 +169,23 @@ private function buildAgentSelectionPrompt(string $userQuestion): string
169
169
$ validAgents = implode ('", " ' , $ agentNames );
170
170
171
171
return <<<PROMPT
172
- You are an intelligent agent orchestrator. Based on the user's question, determine which specialized agent should handle the request.
173
-
174
- User question: " {$ userQuestion }"
175
-
176
- Available agents and their capabilities:
177
- {$ agentList }
178
-
179
- Analyze the user's question and select the most appropriate agent. If no specific agent is needed, select "null".
180
-
181
- Respond with JSON in this exact format:
182
- {
183
- "agentName": "<one of: \"{$ validAgents }\">",
184
- "reasoning": "<your reasoning for the selection>"
185
- }
186
-
187
- The agentName must be exactly one of the available agent names or "none".
188
- PROMPT ;
172
+ You are an intelligent agent orchestrator. Based on the user's question, determine which specialized agent should handle the request.
173
+
174
+ User question: " {$ userQuestion }"
175
+
176
+ Available agents and their capabilities:
177
+ {$ agentList }
178
+
179
+ Analyze the user's question and select the most appropriate agent. If no specific agent is needed, select "null".
180
+
181
+ Respond with JSON in this exact format:
182
+ {
183
+ "agentName": "<one of: \"{$ validAgents }\">",
184
+ "reasoning": "<your reasoning for the selection>"
185
+ }
186
+
187
+ The agentName must be exactly one of the available agent names or "none".
188
+ PROMPT ;
189
189
}
190
190
191
191
private function getAgent (string $ agentName ): AgentInterface
You can’t perform that action at this time.
0 commit comments