patch 20f
This commit is contained in:
@@ -76,6 +76,22 @@ final class AgentRunnerConfig
|
||||
return $this->getRequiredStringList('follow_up_context.commercial_table_follow_up.history_anchor_patterns');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getCommercialTableFollowUpTableTerms(): array
|
||||
{
|
||||
return $this->getRequiredStringList('follow_up_context.commercial_table_follow_up.table_terms');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
public function getCommercialTableFollowUpCommercialTerms(): array
|
||||
{
|
||||
return $this->getRequiredStringList('follow_up_context.commercial_table_follow_up.commercial_terms');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
|
||||
@@ -446,6 +446,8 @@ final readonly class RetriexEffectiveConfigProvider
|
||||
'enabled' => $this->agentRunnerConfig->isCommercialTableFollowUpEnabled(),
|
||||
'prompt_patterns' => $this->agentRunnerConfig->getCommercialTableFollowUpPromptPatterns(),
|
||||
'history_anchor_patterns' => $this->agentRunnerConfig->getCommercialTableFollowUpHistoryAnchorPatterns(),
|
||||
'table_terms' => $this->agentRunnerConfig->getCommercialTableFollowUpTableTerms(),
|
||||
'commercial_terms' => $this->agentRunnerConfig->getCommercialTableFollowUpCommercialTerms(),
|
||||
'indicator_marker_patterns' => $this->agentRunnerConfig->getCommercialTableFollowUpIndicatorMarkerPatterns(),
|
||||
'query_template_with_model' => $this->agentRunnerConfig->getCommercialTableFollowUpQueryTemplateWithModel(),
|
||||
'query_template_without_model' => $this->agentRunnerConfig->getCommercialTableFollowUpQueryTemplateWithoutModel(),
|
||||
@@ -1058,6 +1060,8 @@ final readonly class RetriexEffectiveConfigProvider
|
||||
$commercialTableFollowUp = is_array($followUpContext['commercial_table_follow_up'] ?? null) ? $followUpContext['commercial_table_follow_up'] : [];
|
||||
$this->validateRegexPatternList($commercialTableFollowUp['prompt_patterns'] ?? [], 'agent.follow_up_context.commercial_table_follow_up.prompt_patterns', $errors);
|
||||
$this->validateRegexPatternList($commercialTableFollowUp['history_anchor_patterns'] ?? [], 'agent.follow_up_context.commercial_table_follow_up.history_anchor_patterns', $errors);
|
||||
$this->validateStringList($this->toList($commercialTableFollowUp['table_terms'] ?? []), 'agent.follow_up_context.commercial_table_follow_up.table_terms', $errors, $warnings);
|
||||
$this->validateStringList($this->toList($commercialTableFollowUp['commercial_terms'] ?? []), 'agent.follow_up_context.commercial_table_follow_up.commercial_terms', $errors, $warnings);
|
||||
$this->validateRegexPatternList($commercialTableFollowUp['indicator_marker_patterns'] ?? [], 'agent.follow_up_context.commercial_table_follow_up.indicator_marker_patterns', $errors);
|
||||
if (trim((string) ($commercialTableFollowUp['query_template_with_model'] ?? '')) === '') {
|
||||
$errors[] = 'agent.follow_up_context.commercial_table_follow_up.query_template_with_model must not be empty.';
|
||||
|
||||
Reference in New Issue
Block a user