Skip to content

Commit a7c1a68

Browse files
committed
-
1 parent 5b83757 commit a7c1a68

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
117117
$agentArg = $input->getArgument('agent');
118118
$agentName = \is_string($agentArg) ? $agentArg : '';
119119

120-
// In non-interactive mode, agent is required
121-
if (!$agentName && !$input->isInteractive()) {
122-
throw new InvalidArgumentException(\sprintf('Agent name is required. Available agents: "%s"', implode(', ', $availableAgents)));
123-
}
124-
125120
// Validate that the agent exists if one was provided
126121
if ($agentName && !$this->agents->has($agentName)) {
127122
throw new InvalidArgumentException(\sprintf('Agent "%s" not found. Available agents: "%s"', $agentName, implode(', ', $availableAgents)));

0 commit comments

Comments
 (0)