#[non_exhaustive]pub struct ResponsesRenderOptions {
pub include_encrypted_reasoning: bool,
pub store: Option<bool>,
pub additional_tools: bool,
}Expand description
OpenAI Responses render options.
Configuration, not context: see the module docs for what the serialized form promises and who decides support.
Default sends include: ["reasoning.encrypted_content"] and
store: false, as Codex and pi-ai do: encrypted reasoning is what makes
a reasoning item replayable under store: false or zero data retention.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.include_encrypted_reasoning: boolSend include: ["reasoning.encrypted_content"] (default true).
Turning it off leaves the field out entirely, so the response carries
no encrypted reasoning and a reasoning item cannot be meaningfully
replayed under store: false.
store: Option<bool>Value rendered as store; None omits the field (default
Some(false)). The host owns the data-retention choice this
represents.
When deserializing, a missing key yields the default Some(false),
while an explicit JSON null yields None (omits the field).
Formats without null, such as TOML, use with_store(None) instead.
additional_tools: boolRender added tools in place (default false). tools stays at the
frame’s declaration and each later change renders at its position as
an additional_tools input item, so an addition keeps the cached
prefix. A frame with a removal or a second definition of one name
renders as if this were off: tools carries the current tool state.
Enable only for a server known to support it: a server without support
may reject the request, or ignore the change so the model never sees
the added tool.