-
Notifications
You must be signed in to change notification settings - Fork 69
Docs updates for Agno v2.5.6 #558
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
shaloo
wants to merge
11
commits into
main
Choose a base branch
from
shaloo/docs-updates-v2.5.6
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
456b7cb
Removed the outdated streaming limitation for TeamMode.tasks, added t…
23a1fdb
added the Approval Status API section
9f7d7cd
Added advanced trace search section with FilterExpr example and endpo…
0c02c4d
Expanded team streaming example to handle task lifecycle events.
27e7676
update 1
506d817
Updated Google Maps import path to use
aefc012
include GitHub App auth fields alongside PAT
432a669
input_file behavior when file_search is not used, and that file_searc…
9271338
Add supported image MIME types for
c5e10cd
Fix examples, slack, file tools, image format support for apple file …
13f5b4d
Update docs.json for file-input-direct example code
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,10 @@ github_docs = GitHubConfig( | |
| name="My Repository", | ||
| repo="private/repo", | ||
| token=getenv("GITHUB_TOKEN"), # Fine-grained PAT with Contents: read | ||
| # GitHub App auth requires PyJWT with cryptography and a PEM private key | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @willemcdejongh for any more updates in doc needed for this? |
||
| app_id=getenv("GITHUB_APP_ID"), | ||
| installation_id=getenv("GITHUB_INSTALLATION_ID"), | ||
| private_key=getenv("GITHUB_PRIVATE_KEY"), | ||
| branch="main", | ||
| ) | ||
|
|
||
|
|
@@ -147,6 +151,9 @@ source .venvs/demo/bin/activate | |
|
|
||
| # Export relevant API keys | ||
| export SHAREPOINT_TENANT_ID="***" | ||
| export GITHUB_APP_ID="***" | ||
| export GITHUB_INSTALLATION_ID="***" | ||
| export GITHUB_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----" | ||
|
|
||
| python cloud_agentos.py | ||
| ``` | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| --- | ||
| title: "OpenAI Responses Direct File Input" | ||
| description: "Cookbook example for `openai/responses/file_input_direct.py`." | ||
| --- | ||
| ```python | ||
| """ | ||
| Openai File Input Direct | ||
| ======================== | ||
|
|
||
| Cookbook example for `openai/responses/file_input_direct.py`. | ||
| """ | ||
|
|
||
| from pathlib import Path | ||
|
|
||
| from agno.agent import Agent | ||
| from agno.media import File | ||
| from agno.models.openai.responses import OpenAIResponses | ||
| from agno.utils.media import download_file | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # Create Agent | ||
| # --------------------------------------------------------------------------- | ||
|
|
||
| agent = Agent( | ||
| model=OpenAIResponses(id="gpt-4o"), | ||
| markdown=True, | ||
| ) | ||
|
|
||
| # --------------------------------------------------------------------------- | ||
| # Run Agent | ||
| # --------------------------------------------------------------------------- | ||
| if __name__ == "__main__": | ||
| # File via URL | ||
| agent.print_response( | ||
| "Summarize the key contribution of this paper in 2-3 sentences.", | ||
| files=[File(url="https://arxiv.org/pdf/1706.03762")], | ||
| ) | ||
|
|
||
| # File via local filepath | ||
| pdf_path = Path(__file__).parent.joinpath("ThaiRecipes.pdf") | ||
| download_file( | ||
| "https://agno-public.s3.amazonaws.com/recipes/ThaiRecipes.pdf", str(pdf_path) | ||
| ) | ||
|
|
||
| agent.print_response( | ||
| "List the first 3 recipes from this cookbook.", | ||
| files=[File(filepath=pdf_path, mime_type="application/pdf")], | ||
| ) | ||
|
|
||
| # File via raw bytes | ||
| csv_content = b"name,role,team\nAlice,Engineer,Platform\nBob,Designer,Product\nCharlie,PM,Growth" | ||
|
|
||
| agent.print_response( | ||
| "Describe the team structure from this CSV.", | ||
| files=[File(content=csv_content, filename="team.csv", mime_type="text/csv")], | ||
| ) | ||
| ``` | ||
|
|
||
| ## Run the Example | ||
| ```bash | ||
| # Clone and setup repo | ||
| git clone https://github.com/agno-agi/agno.git | ||
| cd agno/cookbook/90_models/openai/responses | ||
|
|
||
| # Create and activate virtual environment | ||
| ./scripts/demo_setup.sh | ||
| source .venvs/demo/bin/activate | ||
|
|
||
| python file_input_direct.py | ||
| ``` | ||
Oops, something went wrong.
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.
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.
dont think this should be here, just the api endpoints reference we added previously is fine