pub struct Conversation { /* private fields */ }Implementations§
Source§impl Conversation
impl Conversation
pub fn new() -> Self
pub fn id(&self) -> ConversationId
pub fn items(&self) -> &[ConversationItem]
pub fn append_user_content( &mut self, text: impl Into<String>, ) -> ConversationItemId
pub fn append_notice(&mut self, text: impl Into<String>) -> ConversationItemId
pub fn append_assistant_chunk(&mut self, chunk: &str)
pub fn finish_current_block(&mut self)
pub fn on_tool_call(&mut self, tool_call: &ToolCall)
pub fn on_tool_call_update(&mut self, update: &ToolCallUpdate)
pub fn on_sub_agent_progress(&mut self, notification: &SubAgentProgressParams)
pub fn finish_turn(&mut self, terminal_status: &ToolStatus)
pub fn clear(&mut self)
pub fn turn(&self) -> &TurnState
pub fn turn_mut(&mut self) -> &mut TurnState
pub fn plan_tracker(&self) -> &PlanTracker
pub fn plan_tracker_mut(&mut self) -> &mut PlanTracker
pub fn progress_indicator(&self) -> &ProgressIndicator
pub fn progress_indicator_mut(&mut self) -> &mut ProgressIndicator
pub fn reset_feature_state(&mut self)
pub fn any_running(&self) -> bool
Trait Implementations§
Source§impl Debug for Conversation
impl Debug for Conversation
Auto Trait Implementations§
impl Freeze for Conversation
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnsafeUnpin for Conversation
impl UnwindSafe for Conversation
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.