From 21c28a4235ad980ee9da3911730284a67c5b93c3 Mon Sep 17 00:00:00 2001 From: abhishekpatil4 Date: Thu, 6 Feb 2025 21:49:06 +0530 Subject: [PATCH] feat: add agno docs --- docs/framework/{phidata.mdx => agno.mdx} | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) rename docs/framework/{phidata.mdx => agno.mdx} (63%) diff --git a/docs/framework/phidata.mdx b/docs/framework/agno.mdx similarity index 63% rename from docs/framework/phidata.mdx rename to docs/framework/agno.mdx index dadf77ee7fa..dfdd5ace3c5 100644 --- a/docs/framework/phidata.mdx +++ b/docs/framework/agno.mdx @@ -1,22 +1,22 @@ --- -title: "Using Composio With Phidata" -sidebarTitle: "Phidata" -description: "Integrate Composio with Phidata agents to let them seamlessly interact with external apps" +title: "Using Composio With Agno" +sidebarTitle: "Agno" +description: "Integrate Composio with Agno agents to let them seamlessly interact with external apps" --- -## Star A Repository on Github -In this example, we will use Phidata Agent to star a repository on Github using Composio Tools +## Star A Repository on GitHub +In this example, we will use Agno Agent to star a repository on GitHub using Composio Tools ```bash Python -pip install composio-phidata +pip install composio-agno openai ``` ```python Python -from phi.assistant import Assistant -from composio_phidata import Action, App, ComposioToolSet +from agno.agent.agent import Agent +from composio_agno import Action, App, ComposioToolSet toolset = ComposioToolSet() ``` @@ -39,20 +39,20 @@ Don't forget to set your `COMPOSIO_API_KEY` and `OPENAI_API_KEY` in your environ - + You can get all the tools for a given app as shown below, but you can get **specific actions** and filter actions using **usecase** & **tags**. Learn more [here](../../patterns/tools/use-tools/use-specific-actions) ```python Python -composio_tools = toolset.get_tools(apps=[App.GITHUB]) +tools = toolset.get_tools(apps=[App.GITHUB]) ``` ```python Python -assistant = Assistant(tools=composio_tools, show_tool_calls=True) +agent = Agent(tools=tools, show_tool_calls=True) ``` ```python Python -assistant.print_response("Can you star composiohq/composio repo?") +agent.print_response("Can you star ComposioHQ/composio repo?") ``` \ No newline at end of file