pub struct InputRequestResponsePart {
pub request: ChatInputRequest,
pub response: Option<ChatInputResponseKind>,
}Expand description
A live or resolved input request (elicitation) in the turn response stream.
The server inserts the part with chat/inputRequested. While
{@link response} is absent, clients can update answer drafts with
chat/inputAnswerChanged and submit a response with chat/inputCompleted.
Completion updates this part in place so its stream position is stable and
the full interaction remains durable and backfillable via fetchTurns.
If the turn ends without a submitted response, the unresolved part remains in the completed turn transcript with {@link response} absent.
Fields§
§request: ChatInputRequestThe request, carrying its id, message, url, questions, and current
draft or submitted answers.
response: Option<ChatInputResponseKind>How the request was resolved. Absent until a client submits accept,
decline, or cancel with chat/inputCompleted.
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 more