p43C
This commit is contained in:
@@ -127,35 +127,14 @@ final class AgentRunnerConfig
|
||||
|
||||
public function getFollowUpReferenceAnchorProductModelPattern(): string
|
||||
{
|
||||
$value = $this->optionalValue('follow_up_context.reference_anchor.product_model_pattern');
|
||||
if (is_string($value) && trim($value) !== '') {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return $this->getRequiredString('follow_up_context.reference_anchor.testomat_model_pattern');
|
||||
return $this->getRequiredString('follow_up_context.reference_anchor.product_model_pattern');
|
||||
}
|
||||
|
||||
public function getFollowUpReferenceAnchorMeasurementValuePattern(): string
|
||||
{
|
||||
$value = $this->optionalValue('follow_up_context.reference_anchor.measurement_value_pattern');
|
||||
if (is_string($value) && trim($value) !== '') {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return $this->getRequiredString('follow_up_context.reference_anchor.hardness_value_pattern');
|
||||
return $this->getRequiredString('follow_up_context.reference_anchor.measurement_value_pattern');
|
||||
}
|
||||
|
||||
public function getFollowUpReferenceAnchorTestomatModelPattern(): string
|
||||
{
|
||||
return $this->getFollowUpReferenceAnchorProductModelPattern();
|
||||
}
|
||||
|
||||
public function getFollowUpReferenceAnchorHardnessValuePattern(): string
|
||||
{
|
||||
return $this->getFollowUpReferenceAnchorMeasurementValuePattern();
|
||||
}
|
||||
|
||||
|
||||
public function getFollowUpContextPreviousUserQuestionTemplate(): string
|
||||
{
|
||||
return $this->getRequiredString('follow_up_context.context_labels.previous_user_question_template');
|
||||
|
||||
Reference in New Issue
Block a user