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

    Type Alias OutputAsRecord<OutputType>

    OutputAsRecord: [OutputType] extends [Record<string, unknown>]
        ? OutputType
        : { value: OutputType }

    If OutputType is a record, we use it directly. Otherwise, we wrap it in a value field.

    Type Parameters

    • OutputType