pub enum ProcessInput {
ToolCall {
call: PreparedToolCall,
},
Engine {
kind: String,
payload: Value,
},
SessionTurn {
create_request: Box<SessionCreateRequest>,
turn_input: Box<TurnInput>,
output_contract: ToolOutputContract,
},
External {
metadata: Value,
},
}Expand description
Durable executable input for a process.
ToolCall, SessionTurn, and External are kernel process primitives:
core owns their durable representation and execution semantics because they
are how the runtime coordinates tools, child sessions, and externally
completed work. Engine is the extension point for deployment-specific
process runtimes; those rows require a matching crate::ProcessEngine in
the host’s process engine registry.
Variants§
ToolCall
Fields
§
call: PreparedToolCallEngine
SessionTurn
External
Implementations§
Source§impl ProcessInput
impl ProcessInput
pub fn engine_kind(&self) -> &'static str
pub fn engine_specific_kind(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for ProcessInput
impl Clone for ProcessInput
Source§impl Debug for ProcessInput
impl Debug for ProcessInput
Source§impl<'de> Deserialize<'de> for ProcessInput
impl<'de> Deserialize<'de> for ProcessInput
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
Source§impl PartialEq for ProcessInput
impl PartialEq for ProcessInput
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessInput
impl !UnwindSafe for ProcessInput
impl Freeze for ProcessInput
impl Send for ProcessInput
impl Sync for ProcessInput
impl Unpin for ProcessInput
impl UnsafeUnpin for ProcessInput
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