pub struct TextToolResponse {
pub content: String,
pub usage: Option<TokenUsage>,
pub finish_reason: Option<String>,
pub tool_calls_count: u32,
}Expand description
Result of a text-based tool-calling conversation.
Analogous to HeadlessToolResponse
(requires copilot-headless feature) but for CLI providers.
Fields§
§content: StringFinal text content from the LLM (with tool call blocks stripped)
usage: Option<TokenUsage>Token usage statistics from the last LLM call
finish_reason: Option<String>Finish reason from the last LLM call
tool_calls_count: u32Total number of tool calls executed across all iterations
Trait Implementations§
Source§impl Clone for TextToolResponse
impl Clone for TextToolResponse
Auto Trait Implementations§
impl Freeze for TextToolResponse
impl RefUnwindSafe for TextToolResponse
impl Send for TextToolResponse
impl Sync for TextToolResponse
impl Unpin for TextToolResponse
impl UnsafeUnpin for TextToolResponse
impl UnwindSafe for TextToolResponse
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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.