Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

docs: Fix context example syntax and improve clarity #700

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 2 commits into
base: main
Choose a base branch
Loading
from

Conversation

Wania-Kazmi
Copy link

Description

This Pull Request corrects a minor syntax error found in the documentation for the "Context management" section.

Changes Made

  • Fixed the example syntax used to demonstrate passing the local context object to Runner.run. The incorrect example Runner.run(..., **context=whatever**) has been updated to correctly show Runner.run(..., context=your_context_object).

Motivation

This correction provides an accurate code example in the documentation, preventing potential confusion for users and reflecting the correct way to use the context parameter.

…rrect Output guardrail first step.

Enhanced the documentation for input and output guardrails by specifying that input guardrails apply only to the first agent in a sequence, while output guardrails apply only to the last agent. This clarification improves understanding of how guardrails function in agent chains.
Updated the documentation in context.md to enhance clarity by modifying the example of passing context to the run methods. The change specifies the syntax more clearly, improving understanding for users.
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.

1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.