hashbrown

collectTurnAttributions

Collects every attribution in assistant order with its owning answer ID. Original objects, provider HTML, and widget tokens are preserved verbatim; attributions are neither deduplicated nor sanitized or interpreted.

API

export declare function collectTurnAttributions<
  M extends  AnyMessage ,
>(
  turn:  Turn <M>,
): readonly  TurnAttribution [];
collectTurnAttributions
readonly TurnAttribution[]
@paramturn:
Turn<M>

The turn whose attributions to collect.

@typeM
AnyMessage
@returns
readonly TurnAttribution[]