This commit is contained in:
team 1
2026-05-09 12:04:06 +02:00
parent 7f25335c44
commit dabbc33f07
5 changed files with 171 additions and 18 deletions

View File

@@ -979,12 +979,23 @@ final class AgentRunnerConfig
return $this->getRequiredInt('production_ui.shop_results.max_cards');
}
public function isProductionUiFollowUpActionsEnabled(): bool
{
if ($this->chatMessages !== null) {
return $this->chatMessages->getBool('agent.production_ui.follow_up_actions.enabled');
}
return $this->getOptionalBool('production_ui.follow_up_actions.enabled', false);
}
/**
* @return array<int, array{label:string, prompt:string}>
*/
public function getProductionUiFollowUpActions(string $group): array
{
return $this->getChatActionList('agent.production_ui.follow_up_actions.' . $group, 'production_ui.follow_up_actions.' . $group);
$legacyGroup = $group === 'shop_results' ? 'commerce' : $group;
return $this->getChatActionList('agent.production_ui.follow_up_actions.' . $group, 'production_ui.follow_up_actions.' . $legacyGroup);
}
public function getNoLlmProductField(string $key): string