fix p53
This commit is contained in:
@@ -749,37 +749,37 @@ final class AgentRunnerConfig
|
||||
|
||||
public function isDirectShopResultAnswerEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('direct_shop_result_answer.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.direct_answer.enabled');
|
||||
}
|
||||
|
||||
public function getDirectShopResultAnswerMaxResults(): int
|
||||
{
|
||||
return $this->getRequiredInt('direct_shop_result_answer.max_results');
|
||||
return $this->getRequiredInt('shop_runtime.direct_answer.max_results');
|
||||
}
|
||||
|
||||
public function getDirectShopResultAnswerIntro(): string
|
||||
{
|
||||
return $this->getRequiredString('direct_shop_result_answer.intro');
|
||||
return $this->getRequiredString('shop_runtime.direct_answer.intro');
|
||||
}
|
||||
|
||||
public function getDirectShopResultAnswerNoResultsMessage(): string
|
||||
{
|
||||
return $this->getRequiredString('direct_shop_result_answer.no_results');
|
||||
return $this->getRequiredString('shop_runtime.direct_answer.no_results');
|
||||
}
|
||||
|
||||
public function getDirectShopResultAnswerSortedByLengthNote(): string
|
||||
{
|
||||
return $this->getRequiredString('direct_shop_result_answer.sorted_by_length_note');
|
||||
return $this->getRequiredString('shop_runtime.direct_answer.sorted_by_length_note');
|
||||
}
|
||||
|
||||
public function getDirectShopResultAnswerMinLengthFilterNote(): string
|
||||
{
|
||||
return $this->getRequiredString('direct_shop_result_answer.min_length_filter_note');
|
||||
return $this->getRequiredString('shop_runtime.direct_answer.min_length_filter_note');
|
||||
}
|
||||
|
||||
public function getDirectShopResultAnswerMaxLengthFilterNote(): string
|
||||
{
|
||||
return $this->getRequiredString('direct_shop_result_answer.max_length_filter_note');
|
||||
return $this->getRequiredString('shop_runtime.direct_answer.max_length_filter_note');
|
||||
}
|
||||
|
||||
public function getNoLlmFallbackMaxShopResults(): int
|
||||
@@ -1073,12 +1073,12 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryContextUsageReferentialTerms(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.context_usage.referential_terms');
|
||||
return $this->getRequiredStringList('shop_runtime.context_resolution.context_usage.referential_terms');
|
||||
}
|
||||
|
||||
public function isShopQueryCurrentInputPreservationEnabled(): bool
|
||||
{
|
||||
return $this->getOptionalBool('shop_prompt.current_input_preservation.enabled', true);
|
||||
return $this->getOptionalBool('shop_runtime.query_cleanup.current_input_preservation.enabled', true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1087,19 +1087,19 @@ final class AgentRunnerConfig
|
||||
public function getShopQueryCurrentInputPreservationTerms(): array
|
||||
{
|
||||
return $this->getConfiguredStringListOrVocabularyView(
|
||||
'shop_prompt.current_input_preservation.terms',
|
||||
'shop_prompt.current_input_preservation.vocabulary_views.terms'
|
||||
'shop_runtime.query_cleanup.current_input_preservation.terms',
|
||||
'shop_runtime.query_cleanup.current_input_preservation.vocabulary_views.terms'
|
||||
);
|
||||
}
|
||||
|
||||
public function isShopQueryProductAttributeCleanupEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.product_attribute_query_cleanup.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.attribute_cleanup.enabled');
|
||||
}
|
||||
|
||||
public function getShopQueryProductAttributeCleanupMinTokens(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.product_attribute_query_cleanup.min_query_tokens_after_cleanup');
|
||||
return $this->getRequiredInt('shop_runtime.attribute_cleanup.min_query_tokens_after_cleanup');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1108,8 +1108,8 @@ final class AgentRunnerConfig
|
||||
public function getShopQueryProductAttributeCleanupProductTypeTerms(): array
|
||||
{
|
||||
return $this->getConfiguredStringListOrVocabularyView(
|
||||
'shop_prompt.product_attribute_query_cleanup.product_type_terms',
|
||||
'shop_prompt.product_attribute_query_cleanup.vocabulary_views.product_type_terms'
|
||||
'shop_runtime.attribute_cleanup.product_type_terms',
|
||||
'shop_runtime.attribute_cleanup.vocabulary_views.product_type_terms'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1119,8 +1119,8 @@ final class AgentRunnerConfig
|
||||
public function getShopQueryProductAttributeCleanupStopTerms(): array
|
||||
{
|
||||
return $this->getConfiguredStringListOrVocabularyView(
|
||||
'shop_prompt.product_attribute_query_cleanup.stop_terms',
|
||||
'shop_prompt.product_attribute_query_cleanup.vocabulary_views.stop_terms'
|
||||
'shop_runtime.attribute_cleanup.stop_terms',
|
||||
'shop_runtime.attribute_cleanup.vocabulary_views.stop_terms'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1129,17 +1129,17 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryProductAttributeCleanupComparativeConstraintPatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.product_attribute_query_cleanup.comparative_constraint_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.attribute_cleanup.comparative_constraint_patterns');
|
||||
}
|
||||
|
||||
public function isShopQueryStopwordCleanupEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.query_stopword_cleanup.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.query_cleanup.stopword_cleanup.enabled');
|
||||
}
|
||||
|
||||
public function getShopQueryStopwordCleanupMinTokens(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.query_stopword_cleanup.min_query_tokens_after_cleanup');
|
||||
return $this->getRequiredInt('shop_runtime.query_cleanup.stopword_cleanup.min_query_tokens_after_cleanup');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1147,22 +1147,22 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryStopwordCleanupTerms(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.query_stopword_cleanup.terms');
|
||||
return $this->getRequiredStringList('shop_runtime.query_cleanup.stopword_cleanup.terms');
|
||||
}
|
||||
|
||||
public function isDirectShopResultGuardEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.direct_result_guard.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.result_identity.enabled');
|
||||
}
|
||||
|
||||
public function shouldPreferDirectShopResultGuardPrimaryIdentityMatches(): bool
|
||||
{
|
||||
return $this->getOptionalBool('shop_prompt.direct_result_guard.prefer_primary_identity_matches', true);
|
||||
return $this->getOptionalBool('shop_runtime.result_identity.prefer_primary_identity_matches', true);
|
||||
}
|
||||
|
||||
public function isDirectShopResultGuardCompoundPrefixMatchEnabled(): bool
|
||||
{
|
||||
return $this->getOptionalBool('shop_prompt.direct_result_guard.compound_prefix_match.enabled', false);
|
||||
return $this->getOptionalBool('shop_runtime.result_identity.compound_prefix_match.enabled', false);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1170,17 +1170,17 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getDirectShopResultGuardCompoundPrefixTerms(): array
|
||||
{
|
||||
return $this->getOptionalStringList('shop_prompt.direct_result_guard.compound_prefix_match.terms');
|
||||
return $this->getOptionalStringList('shop_runtime.result_identity.compound_prefix_match.terms');
|
||||
}
|
||||
|
||||
public function isDirectShopResultGuardPrimaryIdentityRepairEnabled(): bool
|
||||
{
|
||||
return $this->getOptionalBool('shop_prompt.direct_result_guard.primary_identity_repair.enabled', true);
|
||||
return $this->getOptionalBool('shop_runtime.result_identity.primary_identity_repair.enabled', true);
|
||||
}
|
||||
|
||||
public function getDirectShopResultGuardPrimaryIdentityRepairMinQueryTokens(): int
|
||||
{
|
||||
return $this->getOptionalInt('shop_prompt.direct_result_guard.primary_identity_repair.min_query_tokens_after_cleanup', 2);
|
||||
return $this->getOptionalInt('shop_runtime.result_identity.primary_identity_repair.min_query_tokens_after_cleanup', 2);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1188,12 +1188,12 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getDirectShopResultGuardPrimaryIdentityRepairStopTerms(): array
|
||||
{
|
||||
return $this->getOptionalStringList('shop_prompt.direct_result_guard.primary_identity_repair.stop_terms');
|
||||
return $this->getOptionalStringList('shop_runtime.result_identity.primary_identity_repair.stop_terms');
|
||||
}
|
||||
|
||||
public function isShopResultLengthSortEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.length_sort.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.answer_constraints.length_sort.enabled');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1201,7 +1201,7 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopResultLengthSortTriggerPatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.length_sort.trigger_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.answer_constraints.length_sort.trigger_patterns');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1209,12 +1209,12 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopResultLengthSortValuePatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.length_sort.value_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.answer_constraints.length_sort.value_patterns');
|
||||
}
|
||||
|
||||
public function isShopResultLengthFilterEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.length_filter.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.answer_constraints.length_filter.enabled');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1222,7 +1222,7 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopResultMinLengthFilterPatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.length_filter.min_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.answer_constraints.length_filter.min_patterns');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1230,7 +1230,7 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopResultMaxLengthFilterPatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.length_filter.max_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.answer_constraints.length_filter.max_patterns');
|
||||
}
|
||||
|
||||
public function getShopPromptIntro(): string
|
||||
@@ -1304,12 +1304,12 @@ final class AgentRunnerConfig
|
||||
|
||||
public function isShopQueryMetaGuardEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.meta_query_guard.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.context_resolution.meta_query_guard.enabled');
|
||||
}
|
||||
|
||||
public function getShopQueryContextFallbackCleanupProfile(): string
|
||||
{
|
||||
$value = $this->optionalValue('shop_prompt.meta_query_guard.cleanup_profile');
|
||||
$value = $this->optionalValue('shop_runtime.context_resolution.meta_query_guard.cleanup_profile');
|
||||
|
||||
if (is_string($value) && trim($value) !== '') {
|
||||
return trim($value);
|
||||
@@ -1323,32 +1323,32 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryMetaOnlyTerms(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.meta_query_guard.meta_only_terms');
|
||||
return $this->getRequiredStringList('shop_runtime.context_resolution.meta_query_guard.meta_only_terms');
|
||||
}
|
||||
|
||||
public function isShopQueryContextFallbackEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.meta_query_guard.context_fallback_enabled');
|
||||
return $this->getRequiredBool('shop_runtime.context_resolution.meta_query_guard.context_fallback_enabled');
|
||||
}
|
||||
|
||||
public function getShopQueryContextFallbackQuestionLimit(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.meta_query_guard.context_fallback_question_limit');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.meta_query_guard.context_fallback_question_limit');
|
||||
}
|
||||
|
||||
public function getShopQueryContextFallbackHistoryBudgetChars(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.meta_query_guard.context_fallback_history_budget_chars');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.meta_query_guard.context_fallback_history_budget_chars');
|
||||
}
|
||||
|
||||
public function shouldUseFullHistoryForShopQueryContextFallback(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.meta_query_guard.context_fallback_use_full_history');
|
||||
return $this->getRequiredBool('shop_runtime.context_resolution.meta_query_guard.context_fallback_use_full_history');
|
||||
}
|
||||
|
||||
public function getShopQueryContextFallbackMaxTerms(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.meta_query_guard.context_fallback_max_terms');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.meta_query_guard.context_fallback_max_terms');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1356,17 +1356,17 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryContextFallbackFilterTerms(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.meta_query_guard.context_fallback_filter_terms');
|
||||
return $this->getRequiredStringList('shop_runtime.context_resolution.meta_query_guard.context_fallback_filter_terms');
|
||||
}
|
||||
|
||||
public function isShopQueryContextAnchorEnrichmentEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.context_anchor_enrichment.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.context_resolution.history_anchor_enrichment.enabled');
|
||||
}
|
||||
|
||||
public function getShopQueryContextAnchorEnrichmentMaxQueryTerms(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.context_anchor_enrichment.max_query_terms');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.history_anchor_enrichment.max_query_terms');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1375,8 +1375,8 @@ final class AgentRunnerConfig
|
||||
public function getShopQueryContextAnchorEnrichmentTriggerTerms(): array
|
||||
{
|
||||
return $this->getConfiguredStringListOrVocabularyView(
|
||||
'shop_prompt.context_anchor_enrichment.trigger_terms',
|
||||
'shop_prompt.context_anchor_enrichment.vocabulary_views.trigger_terms'
|
||||
'shop_runtime.context_resolution.history_anchor_enrichment.trigger_terms',
|
||||
'shop_runtime.context_resolution.history_anchor_enrichment.vocabulary_views.trigger_terms'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1385,51 +1385,51 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryContextAnchorEnrichmentPatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.context_anchor_enrichment.anchor_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.context_resolution.history_anchor_enrichment.anchor_patterns');
|
||||
}
|
||||
|
||||
public function getShopQueryContextAnchorEnrichmentTemplate(): string
|
||||
{
|
||||
return $this->getRequiredString('shop_prompt.context_anchor_enrichment.template');
|
||||
return $this->getRequiredString('shop_runtime.context_resolution.history_anchor_enrichment.template');
|
||||
}
|
||||
public function isShopQueryRagAnchorEnrichmentEnabled(): bool
|
||||
{
|
||||
return $this->getRequiredBool('shop_prompt.rag_anchor_enrichment.enabled');
|
||||
return $this->getRequiredBool('shop_runtime.context_resolution.rag_anchor_enrichment.enabled');
|
||||
}
|
||||
|
||||
public function getShopQueryRagAnchorEnrichmentMinScore(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.rag_anchor_enrichment.min_score');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.rag_anchor_enrichment.min_score');
|
||||
}
|
||||
|
||||
public function getShopQueryRagAnchorEnrichmentMaxQueryTerms(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.rag_anchor_enrichment.max_query_terms');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.rag_anchor_enrichment.max_query_terms');
|
||||
}
|
||||
|
||||
public function getShopQueryRagAnchorEnrichmentEarlyChunkBonusMax(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.rag_anchor_enrichment.early_chunk_bonus_max');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.rag_anchor_enrichment.early_chunk_bonus_max');
|
||||
}
|
||||
|
||||
public function getShopQueryRagAnchorEnrichmentExactValueUnitScore(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.rag_anchor_enrichment.scores.exact_value_with_unit');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.rag_anchor_enrichment.scores.exact_value_with_unit');
|
||||
}
|
||||
|
||||
public function getShopQueryRagAnchorEnrichmentExactValueScore(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.rag_anchor_enrichment.scores.exact_value_only');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.rag_anchor_enrichment.scores.exact_value_only');
|
||||
}
|
||||
|
||||
public function getShopQueryRagAnchorEnrichmentAnchorBonusScore(): int
|
||||
{
|
||||
return $this->getRequiredInt('shop_prompt.rag_anchor_enrichment.scores.anchor_bonus');
|
||||
return $this->getRequiredInt('shop_runtime.context_resolution.rag_anchor_enrichment.scores.anchor_bonus');
|
||||
}
|
||||
|
||||
public function getShopQueryRagAnchorEnrichmentTemplate(): string
|
||||
{
|
||||
return $this->getRequiredString('shop_prompt.rag_anchor_enrichment.template');
|
||||
return $this->getRequiredString('shop_runtime.context_resolution.rag_anchor_enrichment.template');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1437,7 +1437,7 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryRagAnchorEnrichmentNumericFocusPatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.rag_anchor_enrichment.numeric_focus_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.context_resolution.rag_anchor_enrichment.numeric_focus_patterns');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1445,7 +1445,7 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryRagAnchorEnrichmentProductTitlePatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.rag_anchor_enrichment.product_title_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.context_resolution.rag_anchor_enrichment.product_title_patterns');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1453,7 +1453,7 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryRagAnchorEnrichmentAnchorBonusPatterns(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.rag_anchor_enrichment.anchor_bonus_patterns');
|
||||
return $this->getRequiredStringList('shop_runtime.context_resolution.rag_anchor_enrichment.anchor_bonus_patterns');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1461,7 +1461,7 @@ final class AgentRunnerConfig
|
||||
*/
|
||||
public function getShopQueryRagAnchorEnrichmentSubjectTerms(): array
|
||||
{
|
||||
return $this->getRequiredStringList('shop_prompt.rag_anchor_enrichment.subject_terms');
|
||||
return $this->getRequiredStringList('shop_runtime.context_resolution.rag_anchor_enrichment.subject_terms');
|
||||
}
|
||||
|
||||
public function getShopQueryTranslationReplacements(string $language): array
|
||||
|
||||
Reference in New Issue
Block a user