Skip to content

Commit fa3a943

Browse files
mshsheikhvcshih
authored andcommitted
feat: add loop safeguard and fix instruction spacing/grammar (openai#1284)
1 parent 64dbaf5 commit fa3a943

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/agent_patterns/llm_as_a_judge.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
story_outline_generator = Agent(
1616
name="story_outline_generator",
1717
instructions=(
18-
"You generate a very short story outline based on the user's input."
18+
"You generate a very short story outline based on the user's input. "
1919
"If there is any feedback provided, use it to improve the outline."
2020
),
2121
)
@@ -30,9 +30,9 @@ class EvaluationFeedback:
3030
evaluator = Agent[None](
3131
name="evaluator",
3232
instructions=(
33-
"You evaluate a story outline and decide if it's good enough."
34-
"If it's not good enough, you provide feedback on what needs to be improved."
35-
"Never give it a pass on the first try. After 5 attempts, you can give it a pass if story outline is good enough - do not go for perfection"
33+
"You evaluate a story outline and decide if it's good enough. "
34+
"If it's not good enough, you provide feedback on what needs to be improved. "
35+
"Never give it a pass on the first try. After 5 attempts, you can give it a pass if the story outline is good enough - do not go for perfection"
3636
),
3737
output_type=EvaluationFeedback,
3838
)

0 commit comments

Comments
 (0)