fix history anchor

This commit is contained in:
team 1
2026-05-04 20:08:14 +02:00
parent c5aeac397c
commit b259b6cd2d
6 changed files with 660 additions and 5 deletions

View File

@@ -98,6 +98,17 @@ final class PromptBuilderConfig
return (float) $value;
}
private function getRequiredBool(string $path): bool
{
$value = $this->getRequiredValue($path);
if (!is_bool($value)) {
throw new \InvalidArgumentException(sprintf('RetrieX prompt config value "%s" must be boolean.', $path));
}
return $value;
}
private function getRequiredString(string $path): string
{
@@ -578,6 +589,37 @@ final class PromptBuilderConfig
return $this->getRequiredString('sections.measurement_evidence_label');
}
public function isNumericValueFocusEnabled(): bool
{
return $this->getRequiredBool('numeric_value_focus.enabled');
}
public function getNumericValueFocusSectionLabel(): string
{
return $this->getRequiredString('sections.numeric_value_focus_label');
}
public function getNumericValueFocusMaxValues(): int
{
return $this->getRequiredInt('numeric_value_focus.max_values');
}
/**
* @return string[]
*/
public function getNumericValueFocusPatterns(): array
{
return $this->getRequiredStringList('numeric_value_focus.value_patterns');
}
/**
* @return string[]
*/
public function getNumericValueFocusRules(): array
{
return $this->getRequiredStringList('numeric_value_focus.rules');
}
/**
* @return string[]
*/