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=())[源代码]#
What one streamed
deltasays, 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.- 参数:
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
textand also what explains a refusal stop.
- tool_calls: tuple[ToolCallDelta, ...]#
Fragments of tool calls.