tool2agent API Documentation - v0.0.0
    Preparing search index...

    Function mkTool2AgentSchema

    • Constructs a Zod schema for ToolCallResult that matches the TypeScript types defined in tool2agent.ts.

      Type Parameters

      • S extends ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>
      • OutputType

      Parameters

      • inputSchema: S

        Zod schema for the tool input type (can be ZodObject for records or any ZodType for non-records)

      • outputSchema: ZodType<OutputType>

        Zod schema for the tool output type

      Returns ZodType<ToolCallResult<output<S>, OutputType>>

      Zod schema for ToolCallResult<InputType, OutputType>