Registering Tools
Python SDK
Register tools with the Python SDK
The Python SDK provides a Pythonic way to consume tools with OpenAI’s function calling capabilities.
Installation
Registering Tools
The AgentRPC Python SDK does not currently support registering tools.
OpenAI Tools
AgentRPC provides integration with OpenAI’s function calling capabilities, allowing you to expose your registered RPC functions as tools for OpenAI models to use.
Agents SDK
rpc.openai.agents.get_tools()
The get_tools()
method returns your registered AgentRPC functions as OpenAI Agent tools.
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.