pub struct SummaryPrompts {
pub system: Cow<'static, str>,
pub initial: Cow<'static, str>,
pub update: Cow<'static, str>,
pub format: Cow<'static, str>,
pub in_place: Cow<'static, str>,
pub notes: Cow<'static, str>,
}Expand description
What a Summarizer asks the model. Each prompt missing from its serde
form is the default’s.
Fields§
§system: Cow<'static, str>The summarizer’s system prompt.
initial: Cow<'static, str>The request for a first summary, after the conversation.
update: Cow<'static, str>The request to fold the conversation into <previous-summary>.
format: Cow<'static, str>The summary’s format, after any request.
in_place: Cow<'static, str>The request for a summary sent at the end of the conversation
itself, after the agent’s own system prompt and tools, in place of
system, initial and update (Summarizer::instruction).
notes: Cow<'static, str>The request for notes on the tool outputs a clearing drops, sent as
in_place is and opening with the same words (ClearPlan::apply).
Implementations§
Trait Implementations§
Source§impl Clone for SummaryPrompts
impl Clone for SummaryPrompts
Source§impl Debug for SummaryPrompts
impl Debug for SummaryPrompts
Source§impl Default for SummaryPrompts
impl Default for SummaryPrompts
Source§impl<'de> Deserialize<'de> for SummaryPromptswhere
SummaryPrompts: Default,
impl<'de> Deserialize<'de> for SummaryPromptswhere
SummaryPrompts: Default,
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
impl Eq for SummaryPrompts
Source§impl PartialEq for SummaryPrompts
impl PartialEq for SummaryPrompts
Source§impl Serialize for SummaryPrompts
impl Serialize for SummaryPrompts
impl StructuralPartialEq for SummaryPrompts
Auto Trait Implementations§
impl Freeze for SummaryPrompts
impl RefUnwindSafe for SummaryPrompts
impl Send for SummaryPrompts
impl Sync for SummaryPrompts
impl Unpin for SummaryPrompts
impl UnsafeUnpin for SummaryPrompts
impl UnwindSafe for SummaryPrompts
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.