FunctionTool objects that execute themselves. You connect an account, fetch the tools, hand them to a FunctionAgent, and LlamaIndex drives the calls. The provider ships for both Python and TypeScript.
1
Install
Install
- Python
- TypeScript
2
Configure API Keys
Configure API Keys
Set
COMPOSIO_API_KEY with your API key from Settings and OPENAI_API_KEY with your OpenAI API key..env
3
Create session and run
Create session and run
- Python
- TypeScript
TypeScript tool schemas
The TypeScript provider passes each tool’s JSON Schema directly to the model, preserving keywords such asformat, contentEncoding, and contentMediaType. Tool arguments are still validated before execution.