ChatDelta#

Connect a provider and configure retries, credentials, and transport. See the guide.

class zett_agent.providers.openai_compatible.ChatDelta(text='', reasoning='', refusal='', tool_calls=(), replay=())[source]#

What one streamed delta says, in the runtime’s terms.

OpenAICompatibleProvider.read_delta() returns one for every chunk, and a subclass that reads a vendor’s extra fields returns the same shape, so the stream loop never learns what the vendor calls anything.

Parameters:
  • text (str)

  • reasoning (str)

  • refusal (str)

  • tool_calls (tuple[ToolCallDelta, ...])

  • replay (tuple[dict[str, JsonValue], ...])

text: str#

Answer text to show.

reasoning: str#

Reasoning text to show.

refusal: str#

Refusal text; shown like text and also what explains a refusal stop.

tool_calls: tuple[ToolCallDelta, ...]#

Fragments of tool calls.

replay: tuple[dict[str, JsonValue], ...]#

Opaque blocks the vendor wants sent back unchanged with the finished message.