Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from agno.agent import Agent from agno.tools.github import GithubTools agent = Agent( instructions=[ "使用你的工具回答有关 agno-agi/agno 仓库的问题", "除非被明确要求,否则不要创建任何 issue 或 pull request", ], tools=[GithubTools()], show_tool_calls=True, ) agent.print_response("List open pull requests", markdown=True)
创建虚拟环境
Terminal
python3 -m venv .venv source .venv/bin/activate
设置你的 GitHub 令牌
export GITHUB_TOKEN=xxx export OPENAI_API_KEY=xxx
安装库
pip install -U PyGithub openai agno
运行 Agent
python cookbook/tools/github_tools.py