pub trait ContextExt {
// Required methods
fn for_task(task: Task) -> Context;
fn push_user_text(&mut self, text: impl Into<String>);
fn push_assistant_text(&mut self, text: impl Into<String>);
fn push_tool_call(&mut self, call_id: &str, tool: &str, args: &Value);
fn push_tool_result(&mut self, action: &Action, result: &ToolResult);
}Expand description
Convenience constructors and mutators for Context.
Required Methods§
fn for_task(task: Task) -> Context
fn push_user_text(&mut self, text: impl Into<String>)
fn push_assistant_text(&mut self, text: impl Into<String>)
fn push_tool_call(&mut self, call_id: &str, tool: &str, args: &Value)
fn push_tool_result(&mut self, action: &Action, result: &ToolResult)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".