Struct PendingQuestion
pub struct PendingQuestion {
pub call_id: String,
pub tool: String,
pub question: String,
pub ui: Option<Value>,
pub stream: Option<String>,
}Expand description
A tool call that asked the user a question and waits for the answer.
One kind of PendingWait, stored in Conversation::pending_wait, so it
is visible in the durable run view (RunView::state, the head) while the run
is parked.
Fields§
§call_id: StringThe tool call the answer will be returned for.
tool: StringThe tool that asked.
question: StringThe question.
ui: Option<Value>The interface that came with it (ToolError::NeedsInput::ui):
an array of A2UI messages, which the A2A server sends beside the question in the
input-required status. Absent from state written before it existed, and not written
while it is None.
stream: Option<String>The stream the question’s words were sent as (RunEvent::TextDelta),
when the question is the words the model wrote (an agent that turns a model’s reply into a
question to the person, as the coder does with a reply that delivers nothing), so that the A2A
server states them under that stream’s id and a client that read the pieces knows this text
for what they were. Absent from state written before it existed, and not written while it is
None; a tool’s own question (ask_user) has none.
Trait Implementations§
§impl Clone for PendingQuestion
impl Clone for PendingQuestion
§fn clone(&self) -> PendingQuestion
fn clone(&self) -> PendingQuestion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PendingQuestion
impl Debug for PendingQuestion
§impl<'de> Deserialize<'de> for PendingQuestion
impl<'de> Deserialize<'de> for PendingQuestion
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PendingQuestion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PendingQuestion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for PendingQuestion
impl PartialEq for PendingQuestion
§impl Serialize for PendingQuestion
impl Serialize for PendingQuestion
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for PendingQuestion
Auto Trait Implementations§
impl Freeze for PendingQuestion
impl RefUnwindSafe for PendingQuestion
impl Send for PendingQuestion
impl Sync for PendingQuestion
impl Unpin for PendingQuestion
impl UnsafeUnpin for PendingQuestion
impl UnwindSafe for PendingQuestion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].