pub enum ContextEvent {
SystemPrompt {
content: String,
tokens: usize,
},
GrepResult {
pattern: String,
matches: usize,
tokens: usize,
},
LlmQueryResult {
query: String,
response_preview: String,
tokens: usize,
},
AssistantCode {
code: String,
tokens: usize,
},
ExecutionOutput {
output: String,
tokens: usize,
},
Final {
answer: String,
tokens: usize,
},
ToolCall {
name: String,
arguments_preview: String,
tokens: usize,
},
ToolResult {
tool_call_id: String,
result_preview: String,
tokens: usize,
},
}Expand description
A context event logged during RLM iteration.
Variants§
SystemPrompt
System prompt with context summary.
GrepResult
Result from a grep operation.
LlmQueryResult
Result from a sub-LLM query.
AssistantCode
Code generated by the assistant.
ExecutionOutput
Output from code execution.
Final
Final answer.
ToolCall
Tool call.
ToolResult
Tool result.
Implementations§
Trait Implementations§
Source§impl Clone for ContextEvent
impl Clone for ContextEvent
Source§fn clone(&self) -> ContextEvent
fn clone(&self) -> ContextEvent
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 ContextEvent
impl Debug for ContextEvent
Source§impl<'de> Deserialize<'de> for ContextEvent
impl<'de> Deserialize<'de> for ContextEvent
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 Freeze for ContextEvent
impl RefUnwindSafe for ContextEvent
impl Send for ContextEvent
impl Sync for ContextEvent
impl Unpin for ContextEvent
impl UnsafeUnpin for ContextEvent
impl UnwindSafe for ContextEvent
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