pub enum ContentSource {
SystemPrompt,
ContextBlock {
block_id: String,
},
ToolDefinitions,
UserMessage,
SessionMessage,
AssistantHistory,
ToolOutput {
tool_name: String,
},
SystemReminder {
origin: String,
},
Hook {
hook_name: String,
},
CompactionSummary,
}Expand description
The origin category of a piece of model-bound content.
Variants§
SystemPrompt
ContextBlock
A typed context block (env details, rules, skills catalog, …).
ToolDefinitions
UserMessage
SessionMessage
AssistantHistory
Prior assistant output replayed as history.
ToolOutput
SystemReminder
Harness-injected content, distinct from user-authored messages.
Hook
CompactionSummary
Trait Implementations§
Source§impl Clone for ContentSource
impl Clone for ContentSource
Source§fn clone(&self) -> ContentSource
fn clone(&self) -> ContentSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentSource
impl Debug for ContentSource
Source§impl<'de> Deserialize<'de> for ContentSource
impl<'de> Deserialize<'de> for ContentSource
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 ContentSource
Source§impl Hash for ContentSource
impl Hash for ContentSource
Source§impl JsonSchema for ContentSource
impl JsonSchema for ContentSource
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for ContentSource
impl Ord for ContentSource
Source§fn cmp(&self, other: &ContentSource) -> Ordering
fn cmp(&self, other: &ContentSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContentSource
impl PartialEq for ContentSource
Source§fn eq(&self, other: &ContentSource) -> bool
fn eq(&self, other: &ContentSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContentSource
impl PartialOrd for ContentSource
Source§impl Serialize for ContentSource
impl Serialize for ContentSource
impl StructuralPartialEq for ContentSource
Auto Trait Implementations§
impl Freeze for ContentSource
impl RefUnwindSafe for ContentSource
impl Send for ContentSource
impl Sync for ContentSource
impl Unpin for ContentSource
impl UnsafeUnpin for ContentSource
impl UnwindSafe for ContentSource
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