-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Improve Docs of Custom Tools and Agents #23255
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
@property | ||
def toolbox(self) -> Dict[str, Tool]: | ||
"""Get all tool currently available to the agent""" | ||
return self._toolbox | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the benefit of this design?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid the user changing agent.toolbox
. They can still change a key, but not replace (and accidentally eras) the whole variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
* Improve docs * correct tip format * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review * Correct grammer & spelling * Improve code style * make style ruff * make style final
* Improve docs * correct tip format * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review * Correct grammer & spelling * Improve code style * make style ruff * make style final
* Improve docs * correct tip format * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review * Correct grammer & spelling * Improve code style * make style ruff * make style final
What does this PR do?
This PR improves the docs explaining how to customize prompts and corrects some grammar, spelling, code snippets of both
transformers_agent.mdx
andcustom_tools.mdx
. Alsoagent.toolbox
is made a get method / property which should help both with documentation and forbid the user to overwrite the attribute completely.