Skip to content

Commit 5b83757

Browse files
committed
-
1 parent 65513b1 commit 5b83757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ai-bundle/src/Command/ChatCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
132132
throw new InvalidArgumentException(\sprintf('Agent name is required. Available agents: "%s"', implode(', ', $availableAgents)));
133133
}
134134

135-
$this->agent = $this->agents->get($agentName);
135+
$agent = $this->agents->get($agentName);
136136

137137
// Now start the chat
138138
$io = new SymfonyStyle($input, $output);
@@ -159,7 +159,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
159159
$messages->add(Message::ofUser($userInput));
160160

161161
try {
162-
$result = $this->agent->call($messages);
162+
$result = $agent->call($messages);
163163

164164
// Display system prompt after first successful call
165165
if (!$systemPromptDisplayed && null !== ($systemMessage = $messages->getSystemMessage())) {

0 commit comments

Comments
 (0)