registryValueToAgentTool(value, toolHelper, definition?): any
Turn a ToolRegistry value into an object the OpenAI Agents SDK accepts
in Agent({ tools: [...] }).
Plain callables are wrapped with the Agents SDK tool() helper using the
JSON schema from the LD tool definition. Values that are already tool
instances (e.g., webSearchTool(), fileSearchTool(...)) are returned
unchanged.
Turn a ToolRegistry value into an object the OpenAI Agents SDK accepts in
Agent({ tools: [...] }).Plain callables are wrapped with the Agents SDK
tool()helper using the JSON schema from the LD tool definition. Values that are already tool instances (e.g.,webSearchTool(),fileSearchTool(...)) are returned unchanged.