Skip to content

Changed a mistake #759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Changed a mistake #759

wants to merge 1 commit into from

Conversation

Ham-Gholami
Copy link

Line 152: gaurdrail_agent -> agent

Line 152: gaurdrail_agent -> agent
@Rehan-Ul-Haq
Copy link

The previous code result = await Runner.run(guardrail_agent, input_data, context=ctx.context) is correct. This run is used inside homework_guardrail function and which is further passed to the triage agent ininput_guardrails. This run will run in parallel to the main result = await Runner.run(triage_agent, "who was the first president of the united states?") and result = await Runner.run(triage_agent, "what is life").
Therefore, the previous code is correct. No need to change guardrail_agent to agent. Please review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants