Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: add llamaindex provider page and update gpt-4-turbo to gpt-5 (#1986)

Prathitabc938df6181
diff --git a/fern/docs.yml b/fern/docs.yml
index 9b79aaf2a..fb695c8d6 100644
--- a/fern/docs.yml
+++ b/fern/docs.yml
@@ -235,6 +235,8 @@ navigation:
path: pages/dist/providers/google.mdx
- page: LangChain Provider
path: pages/dist/providers/langchain.mdx
+ - page: LlamaIndex Provider
+ path: pages/dist/providers/llamaindex.mdx
- page: CrewAI Provider
path: pages/dist/providers/crewai.mdx
- page: Vercel AI SDK Provider
@@ -3377,4 +3379,4 @@ navigation:
skip-slug: true
paginated: false
flattened: true
-- tab: changelog
+- tab: changelog
\ No newline at end of file
diff --git a/fern/pages/src/examples/utility_agents/gmail_labeler.mdx b/fern/pages/src/examples/utility_agents/gmail_labeler.mdx
index 9abd3bdb9..447c649cc 100644
--- a/fern/pages/src/examples/utility_agents/gmail_labeler.mdx
+++ b/fern/pages/src/examples/utility_agents/gmail_labeler.mdx
@@ -47,7 +47,7 @@ def create_agent(user_id: str, composio_client: Composio[LangchainProvider]):
prompt = hub.pull("hwchase17/openai-functions-agent")
# Step 3: Initialize chat model.
- openai_client = ChatOpenAI(model="gpt-4-turbo")
+ openai_client = ChatOpenAI(model="gpt-5")
# Step 4: Define agent
return AgentExecutor(
diff --git a/fern/pages/src/examples/utility_agents/slack_summariser.mdx b/fern/pages/src/examples/utility_agents/slack_summariser.mdx
index 60712ae3d..29a533c5e 100644
--- a/fern/pages/src/examples/utility_agents/slack_summariser.mdx
+++ b/fern/pages/src/examples/utility_agents/slack_summariser.mdx
@@ -45,7 +45,7 @@ def create_agent(user_id: str, composio_client: Composio[LangchainProvider]):
prompt = hub.pull("hwchase17/openai-functions-agent")
# Step 3: Initialize chat model.
- openai_client = ChatOpenAI(model="gpt-4-turbo")
+ openai_client = ChatOpenAI(model="gpt-5")
# Step 4: Define agent
return AgentExecutor(
diff --git a/fern/pages/src/examples/utility_agents/supabase_sql_agent.mdx b/fern/pages/src/examples/utility_agents/supabase_sql_agent.mdx
index 0790faa96..f582cb8ae 100644
--- a/fern/pages/src/examples/utility_agents/supabase_sql_agent.mdx
+++ b/fern/pages/src/examples/utility_agents/supabase_sql_agent.mdx
@@ -36,7 +36,7 @@ def create_agent(user_id: str, composio_client: Composio[LlamaIndexProvider]):
"""
# Setup client
- llm = OpenAI(model="gpt-4-turbo")
+ llm = OpenAI(model="gpt-5")
# Get All the tools
tools = composio_client.tools.get(
diff --git a/fern/pages/src/providers/llamaindex.mdx b/fern/pages/src/providers/llamaindex.mdx
new file mode 100644
index 000000000..c25eb9711
--- /dev/null
+++ b/fern/pages/src/providers/llamaindex.mdx
@@ -0,0 +1,25 @@
+---
+title: LlamaIndex Provider
+slug: /providers/llamaindex
+image: "https://og.composio.dev/api/og?title=LlamaIndex%20Provider" # image for socials
+keywords: ""
+hide-nav-links: false
+---
+
+The LlamaIndex Provider transforms Composio tools into a format compatible with LlamaIndex's function calling capabilities.
+
+## Setup
+<CodeGroup>
+```bash title="Python" for="python"
+pip install composio_llamaindex==0.8.0 llama-index
+```
+</CodeGroup>
+
+## Usage
+
+<CodeGroup>
+<SnippetCode
+ src="fern/snippets/providers/python/llamaindex-provider.py"
+ title="Python"
+/>
+</CodeGroup>
\ No newline at end of file
diff --git a/fern/snippets/providers/python/langchain-provider.py b/fern/snippets/providers/python/langchain-provider.py
index d52fce6ff..82342795d 100644
--- a/fern/snippets/providers/python/langchain-provider.py
+++ b/fern/snippets/providers/python/langchain-provider.py
@@ -8,7 +8,7 @@ from langchain_openai import ChatOpenAI
prompt = hub.pull("hwchase17/openai-functions-agent")
# Initialize tools.
-openai_client = ChatOpenAI(model="gpt-4-turbo")
+openai_client = ChatOpenAI(model="gpt-5")
composio = Composio(provider=LangchainProvider())
diff --git a/fern/snippets/providers/python/llamaindex-provider.py b/fern/snippets/providers/python/llamaindex-provider.py
new file mode 100644
index 000000000..f41e4a3ba
--- /dev/null
+++ b/fern/snippets/providers/python/llamaindex-provider.py
@@ -0,0 +1,36 @@
+import asyncio
+import dotenv
+from composio_llamaindex import LlamaIndexProvider
+from llama_index.core.agent.workflow import FunctionAgent
+from llama_index.llms.openai import OpenAI
+
+from composio import Composio
+
+# Load environment variables from .env
+dotenv.load_dotenv()
+
+# Setup client
+llm = OpenAI(model="gpt-5")
+composio = Composio(provider=LlamaIndexProvider())
+
+tools = composio.tools.get(
+ user_id="[email protected]",
+ tools=["GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER"],
+)
+
+workflow = FunctionAgent(
+ tools=tools,
+ llm=llm,
+ system_prompt="You are an agent that performs github actions.",
+)
+
+
+async def main():
+ result = await workflow.run(
+ user_msg="Hello! I would like to star a repo composiohq/composio on GitHub"
+ )
+ print(result)
+
+
+if __name__ == "__main__":
+ asyncio.run(main())
\ No newline at end of file
diff --git a/python/providers/autogen/autogen_demo.py b/python/providers/autogen/autogen_demo.py
index 99d90f1e9..867f58fcf 100644
--- a/python/providers/autogen/autogen_demo.py
+++ b/python/providers/autogen/autogen_demo.py
@@ -22,7 +22,7 @@ def main():
system_message="Reply TERMINATE when the task is done or when user's content is empty",
llm_config={
"config_list": [
- {"model": "gpt-4-turbo", "api_key": os.environ["OPENAI_API_KEY"]},
+ {"model": "gpt-5", "api_key": os.environ["OPENAI_API_KEY"]},
]
},
)
diff --git a/python/providers/langchain/langchain_demo.py b/python/providers/langchain/langchain_demo.py
index ef110e48d..12a8639e4 100644
--- a/python/providers/langchain/langchain_demo.py
+++ b/python/providers/langchain/langchain_demo.py
@@ -13,7 +13,7 @@ from composio import Composio
prompt = hub.pull("hwchase17/openai-functions-agent")
# Initialize tools.
-openai_client = ChatOpenAI(model="gpt-4-turbo")
+openai_client = ChatOpenAI(model="gpt-5")
def main():
diff --git a/python/providers/llamaindex/llamaindex_demo.py b/python/providers/llamaindex/llamaindex_demo.py
index f55566d0f..94a7cfddc 100644
--- a/python/providers/llamaindex/llamaindex_demo.py
+++ b/python/providers/llamaindex/llamaindex_demo.py
@@ -11,7 +11,7 @@ from composio import Composio
dotenv.load_dotenv()
# Setup client
-llm = OpenAI(model="gpt-4-turbo")
+llm = OpenAI(model="gpt-5")
composio = Composio(provider=LlamaIndexProvider())
# Get All the tools
diff --git a/python/providers/openai/README.md b/python/providers/openai/README.md
index 37e461058..3409c3725 100644
--- a/python/providers/openai/README.md
+++ b/python/providers/openai/README.md
@@ -52,7 +52,7 @@ This step involves configuring and executing the agent to carry out actions, suc
my_task = "Star a repo composiohq/composio on GitHub"
# Create a chat completion request to decide on the action
-response = openai_client.chat.completions.create(model="gpt-4-turbo-preview",
+response = openai_client.chat.completions.create(model="gpt-5",
tools=actions, # Passing actions we fetched earlier.
messages=[
{"role": "system", "content": "You are a helpful assistant."},
diff --git a/python/providers/openai/openai_assistant_demo.py b/python/providers/openai/openai_assistant_demo.py
index d8bdbc815..c80d9f076 100644
--- a/python/providers/openai/openai_assistant_demo.py
+++ b/python/providers/openai/openai_assistant_demo.py
@@ -25,7 +25,7 @@ assistant_instruction = (
assistant = openai_client.beta.assistants.create(
name="Personal Assistant",
instructions=assistant_instruction,
- model="gpt-4-turbo-preview",
+ model="gpt-5",
tools=actions, # type: ignore
)
diff --git a/ts/docs/getting-started.md b/ts/docs/getting-started.md
index c737ad162..e43854c01 100644
--- a/ts/docs/getting-started.md
+++ b/ts/docs/getting-started.md
@@ -160,7 +160,7 @@ const tools = await composio.tools.get('default', {
// Create a chat completion with OpenAI using the tools
const completion = await openai.chat.completions.create({
- model: 'gpt-4-turbo',
+ model: 'gpt-5',
messages: [
{ role: 'system', content: 'You are a helpful assistant with access to GitHub tools.' },
{ role: 'user', content: 'List the repositories in the Composio organization' },