This commit is contained in:
team 1
2026-05-10 16:06:53 +02:00
parent 63210a14de
commit 6e72dfb2e5
9 changed files with 839 additions and 4 deletions

View File

@@ -1805,6 +1805,64 @@ final class AgentRunnerConfig
return $this->genreString('context_resolution.history_anchor_enrichment.template')
?: $this->getRequiredString('shop_runtime.context_resolution.history_anchor_enrichment.template');
}
public function isShopQueryProductListFollowUpEnabled(): bool
{
return $this->genreBool('context_resolution.product_list_followup.enabled') ?? false;
}
public function getShopQueryProductListFollowUpWeakQueryMaxTerms(): int
{
return $this->genreInt('context_resolution.product_list_followup.weak_query_max_terms') ?? 4;
}
public function getShopQueryProductListFollowUpWeakQueryMaxResidualTerms(): int
{
return $this->genreInt('context_resolution.product_list_followup.weak_query_max_residual_terms') ?? 0;
}
public function getShopQueryProductListFollowUpMaxAnchors(): int
{
return $this->genreInt('context_resolution.product_list_followup.max_anchors') ?? 4;
}
public function getShopQueryProductListFollowUpTemplate(): string
{
return $this->genreString('context_resolution.product_list_followup.template') ?: '{anchors}';
}
/**
* @return string[]
*/
public function getShopQueryProductListFollowUpProductTerms(): array
{
return $this->genreStringList('context_resolution.product_list_followup.product_terms');
}
/**
* @return string[]
*/
public function getShopQueryProductListFollowUpShopTerms(): array
{
return $this->genreStringList('context_resolution.product_list_followup.shop_terms');
}
/**
* @return string[]
*/
public function getShopQueryProductListFollowUpNoiseTerms(): array
{
return $this->genreStringList('context_resolution.product_list_followup.noise_terms');
}
/**
* @return string[]
*/
public function getShopQueryProductListFollowUpAnchorPatterns(): array
{
return $this->genreStringList('context_resolution.product_list_followup.anchor_patterns');
}
public function isShopQueryRagAnchorEnrichmentEnabled(): bool
{
return $this->getRequiredBool('shop_runtime.context_resolution.rag_anchor_enrichment.enabled');