fix reasoning order in examples
This commit is contained in:
parent
951193bd21
commit
54a48a3967
2 changed files with 2 additions and 2 deletions
|
|
@ -30,8 +30,8 @@ If the guardrail trips, we'll respond with a refusal message.
|
||||||
|
|
||||||
### 1. An agent-based guardrail that is triggered if the user is asking to do math homework
|
### 1. An agent-based guardrail that is triggered if the user is asking to do math homework
|
||||||
class MathHomeworkOutput(BaseModel):
|
class MathHomeworkOutput(BaseModel):
|
||||||
is_math_homework: bool
|
|
||||||
reasoning: str
|
reasoning: str
|
||||||
|
is_math_homework: bool
|
||||||
|
|
||||||
|
|
||||||
guardrail_agent = Agent(
|
guardrail_agent = Agent(
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ story_outline_generator = Agent(
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class EvaluationFeedback:
|
class EvaluationFeedback:
|
||||||
score: Literal["pass", "needs_improvement", "fail"]
|
|
||||||
feedback: str
|
feedback: str
|
||||||
|
score: Literal["pass", "needs_improvement", "fail"]
|
||||||
|
|
||||||
|
|
||||||
evaluator = Agent[None](
|
evaluator = Agent[None](
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue