Collects all chunks from a stream into an array.
The stream to collect
Options including optional AbortSignal.
maxChunks defaults to DEFAULT_COLLECT_STREAM_MAX_CHUNKS to
prevent unbounded memory growth on forgotten limits. Pass
Infinity explicitly for truly unbounded collection.
Result containing collected chunks or error
Adapters exports - Model adapters (Claude, OpenAI, Gemini, Ollama) Split from index.ts for file size compliance (Issue #285)