Skip to main content

Python

Agents SDK

Connect AgentRPC tools to the OpenAI Agents SDK.

rpc.openai.agents.get_tools()

The get_tools() method returns your registered AgentRPC functions as OpenAI Agent tools.

Completions SDK

Connect AgentRPC tools to the OpenAI Completions SDK.

rpc.openai.completions.get_tools()

The get_tools() method returns your registered AgentRPC functions formatted as OpenAI tools, ready to be passed to OpenAI’s API.

rpc.openai.completions.execute_tool(tool_call)

The execute_tool() method executes an OpenAI tool call against your registered AgentRPC functions.
For more details, visit the Python SDK GitHub repository.

TypeScript

Connect AgentRPC tools to the OpenAI Completions SDK. You can use the rpc.OpenAI object to get tools formatted for the OpenAI Completions SDK.
For more details, visit the NodeJS SDK GitHub repository.