pub struct ModelCompletionRequest {
pub session_id: SessionId,
pub branch_id: BranchId,
pub run_id: RunId,
pub step_index: u32,
pub objective: String,
pub proposed_tool: Option<ToolCall>,
pub system_prompt: Option<String>,
pub allowed_tools: Option<Vec<String>>,
pub conversation_history: Vec<ConversationTurn>,
}Fields§
§session_id: SessionId§branch_id: BranchId§run_id: RunId§step_index: u32§objective: String§proposed_tool: Option<ToolCall>§system_prompt: Option<String>Optional system prompt to prepend to the conversation. Used for skill catalogs, persona blocks, and context compiler output.
allowed_tools: Option<Vec<String>>Tool whitelist from active skill. When set, only these tools are sent to the LLM.
conversation_history: Vec<ConversationTurn>Conversation history from prior turns in this session. Built by the runtime from the event journal before each provider call.
Trait Implementations§
Source§impl Clone for ModelCompletionRequest
impl Clone for ModelCompletionRequest
Source§fn clone(&self) -> ModelCompletionRequest
fn clone(&self) -> ModelCompletionRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 ModelCompletionRequest
impl Debug for ModelCompletionRequest
Source§impl<'de> Deserialize<'de> for ModelCompletionRequest
impl<'de> Deserialize<'de> for ModelCompletionRequest
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 ModelCompletionRequest
impl RefUnwindSafe for ModelCompletionRequest
impl Send for ModelCompletionRequest
impl Sync for ModelCompletionRequest
impl Unpin for ModelCompletionRequest
impl UnsafeUnpin for ModelCompletionRequest
impl UnwindSafe for ModelCompletionRequest
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