fix history anchor
This commit is contained in:
@@ -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[]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user