docs: Enhance fetch_user_age tool: include UID and correct output format#702
Closed
Wania-Kazmi wants to merge 3 commits intoopenai:mainfrom
Closed
docs: Enhance fetch_user_age tool: include UID and correct output format#702Wania-Kazmi wants to merge 3 commits intoopenai:mainfrom
Wania-Kazmi wants to merge 3 commits intoopenai:mainfrom
Conversation
…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.
…string Updated the context.md documentation to provide clearer user information by including the user ID in the output string. This change improves the clarity of the example, making it easier for users to understand the context being passed.
Contributor
|
This PR is stale because it has been open for 10 days with no activity. |
Contributor
|
This PR was closed because it has been inactive for 7 days since being marked as stale. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The existing
fetch_user_agetool only displayed the user’s name and hard-coded age, and the printed comment was misleading. It also neglected the user’s unique identifier.Issue
Output string in
context.mdwas inaccurate for given string in functionfetch_user_age:The
uidfield ofUserInfowas never used, reducing context completeness.Changes
Use
uidin the tool’s responseUpdated
fetch_user_ageto reference bothnameanduidfromwrapper.context.Correct expected output in example
Adjusted the printed comment in
context.mdto match the new response format.These updates ensure the tool provides a more complete and accurate user context, improving both clarity and correctness.