Skip to content

Commit e6ec748

Browse files
Update src/agent/src/MultiAgent/MultiAgent.php
Co-authored-by: Christopher Hertel <[email protected]>
1 parent 4952511 commit e6ec748

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/agent/src/MultiAgent/MultiAgent.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -169,23 +169,23 @@ private function buildAgentSelectionPrompt(string $userQuestion): string
169169
$validAgents = implode('", "', $agentNames);
170170

171171
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;
189189
}
190190

191191
private function getAgent(string $agentName): AgentInterface

0 commit comments

Comments
 (0)