# `LlmCore.LLM.SSEParser`
[🔗](https://github.com/fosferon/llm_core/blob/v0.3.0/lib/llm_core/llm/sse_parser.ex#L1)

Helper module for parsing Server-Sent Events (SSE) from LLM APIs.

# `parse_line`

```elixir
@spec parse_line(String.t()) :: {:ok, map()} | :done | :ignore
```

Parses a raw SSE line and extracts the data payload.

Returns `{:ok, data}` if data is found, `:done` if stream end signal, or `:ignore`.

# `reduce_chunks`

```elixir
@spec reduce_chunks(Enumerable.t()) :: String.t()
```

Accumulates streamed chunks into a single content string.
Useful for non-streaming consumers or testing.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
