pub struct StreamedTurn {
pub head: AssistantMessage,
pub choice: Vec<AssistantContent>,
pub policy: TurnPolicy,
pub cut_off: Vec<usize>,
}Expand description
The assembled streamed turn, fed to
AgentRun::streamed_turn.
Fields§
§head: AssistantMessageThe turn’s origin, stop and provider message, without content.
choice: Vec<AssistantContent>The assistant content to record in history, in the order its parts started, with ignored calls left out and repaired calls renamed.
policy: TurnPolicyThe tool policy the turn was prepared with.
cut_off: Vec<usize>The positions in Self::choice of the calls the reply was cut off
in the middle of
(CompletionResponse::cut_off_calls).
Each is answered as cut off and never run, whatever its name.
Trait Implementations§
Source§impl Clone for StreamedTurn
impl Clone for StreamedTurn
Source§impl Debug for StreamedTurn
impl Debug for StreamedTurn
Source§impl<'de> Deserialize<'de> for StreamedTurn
impl<'de> Deserialize<'de> for StreamedTurn
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for StreamedTurn
impl Freeze for StreamedTurn
impl Move for StreamedTurn
impl RefUnwindSafe for StreamedTurn
impl Send for StreamedTurn
impl Sync for StreamedTurn
impl Unpin for StreamedTurn
impl UnsafeUnpin for StreamedTurn
impl UnwindSafe for StreamedTurn
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
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>,
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> 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> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.