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§fn clone(&self) -> ProcessInput
fn clone(&self) -> ProcessInput
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 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<ProcessInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProcessInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProcessInput
impl PartialEq for ProcessInput
Source§fn eq(&self, other: &ProcessInput) -> bool
fn eq(&self, other: &ProcessInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProcessInput
impl Serialize for ProcessInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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