前提条件
以下示例需要composio-agno 库。
示例
以下代理将使用 Composio Toolkit 中的 Github 工具来 star 一个仓库。cookbook/tools/composio_tools.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
composio-agno 库。
pip install composio-agno
composio add github # 登录 Github
from agno.agent import Agent
from composio_agno import Action, ComposioToolSet
toolset = ComposioToolSet()
composio_tools = toolset.get_tools(
actions=[Action.GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER]
)
agent = Agent(tools=composio_tools, show_tool_calls=True)
agent.print_response("Can you star agno-agi/agno repo?")
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
owner | str | - | 要 star 的仓库的所有者。 |
repo | str | - | 要 star 的仓库的名称。 |