pub struct InputRequestResponsePart {
pub request: ChatInputRequest,
pub response: ChatInputResponseKind,
}Expand description
A resolved input request (elicitation) recorded in the turn transcript.
While an input request is open it lives in {@link ChatState.inputRequests}
as live, interactive state (see {@link ChatInputRequest}). When the request
completes via chat/inputCompleted, the reducer removes it from
inputRequests and appends this part to the active turn so the decision
survives in history. This mirrors how a tool-call confirmation persists in
its {@link ToolCallResponsePart} (via confirmed / selectedOption on the
terminal {@link ToolCallState}): the live surface drives in-flight UX, the
terminal outcome is durable and backfillable via fetchTurns.
No part is recorded when an outstanding request is abandoned (the turn completes, is cancelled, errors, or is truncated) rather than completed.
Fields§
§request: ChatInputRequestThe resolved request, carrying its id, message, url, questions,
and the final answers synced/submitted at completion.
response: ChatInputResponseKindHow the request was resolved: accept, decline, or cancel.
Trait Implementations§
Source§impl Clone for InputRequestResponsePart
impl Clone for InputRequestResponsePart
Source§fn clone(&self) -> InputRequestResponsePart
fn clone(&self) -> InputRequestResponsePart
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InputRequestResponsePart
impl Debug for InputRequestResponsePart
Source§impl<'de> Deserialize<'de> for InputRequestResponsePart
impl<'de> Deserialize<'de> for InputRequestResponsePart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for InputRequestResponsePart
impl PartialEq for InputRequestResponsePart
Source§fn eq(&self, other: &InputRequestResponsePart) -> bool
fn eq(&self, other: &InputRequestResponsePart) -> bool
self and other values to be equal, and is used by ==.