OpenAI Integration¶
- async agentstr.mcp.openai.to_openai_tools(nostr_mcp_client: NostrMCPClient) list[FunctionTool] [source]¶
Convert tools from the MCP client to OpenAI tools.
- Parameters:
nostr_mcp_client – An instance of NostrMCPClient to fetch tools from.
- Returns:
A list of OpenAI FunctionTool objects that wrap the MCP tools.
This module provides integration with OpenAI tools, enabling conversion between MCP tools and OpenAI’s tool format.