• 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.

    Parameters

    • value: unknown
    • toolHelper: ((opts) => any)
        • (opts): any
        • Parameters

          • opts: any

          Returns any

    • Optional definition: LDTool
      Optional

    Returns any

Generated using TypeDoc