pub struct SessionChatInputRequest {
pub id: String,
pub chat: Uri,
pub request: ChatInputRequest,
}Expand description
A user-input elicitation surfaced at the session level, mirroring one entry of the owning chat’s {@link ChatState.inputRequests}.
Respond by dispatching chat/inputCompleted (or syncing drafts with
chat/inputAnswerChanged) to {@link SessionInputRequestBase.chat | chat},
keyed by {@link ChatInputRequest.id | request.id}.
Fields§
§id: StringStable key for this entry, unique within the session’s
{@link SessionState.inputNeeded} list. The host derives it however it likes
(for example from the chat URI plus the underlying request or tool-call
id); consumers MUST treat it as opaque. It is the key for the
session/inputNeededSet / session/inputNeededRemoved upsert convention.
chat: UriThe chat the underlying request lives in. This is the channel a client dispatches its response to — it does not need to have subscribed to that chat first.
request: ChatInputRequestThe mirrored chat input request.
Trait Implementations§
Source§impl Clone for SessionChatInputRequest
impl Clone for SessionChatInputRequest
Source§fn clone(&self) -> SessionChatInputRequest
fn clone(&self) -> SessionChatInputRequest
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 SessionChatInputRequest
impl Debug for SessionChatInputRequest
Source§impl<'de> Deserialize<'de> for SessionChatInputRequest
impl<'de> Deserialize<'de> for SessionChatInputRequest
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 SessionChatInputRequest
impl PartialEq for SessionChatInputRequest
Source§fn eq(&self, other: &SessionChatInputRequest) -> bool
fn eq(&self, other: &SessionChatInputRequest) -> bool
self and other values to be equal, and is used by ==.