pub enum WorkflowRuntimeRequest {
Agent {
id: String,
prompt: String,
options: Option<Value>,
},
Workflow {
id: String,
workflow_ref: WorkflowRef,
args: Option<Value>,
},
Sleep {
id: String,
duration_ms: u64,
},
}Expand description
Long-running JavaScript-visible request emitted by workflow JS.
Variants§
Agent
Workflow called agent(...) and is awaiting the provider result.
Workflow
Workflow called workflow(...) and is awaiting a child workflow result.
Sleep
Workflow called sleep(...) from the workflow:extra namespace.
Implementations§
Trait Implementations§
Source§impl Clone for WorkflowRuntimeRequest
impl Clone for WorkflowRuntimeRequest
Source§fn clone(&self) -> WorkflowRuntimeRequest
fn clone(&self) -> WorkflowRuntimeRequest
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 WorkflowRuntimeRequest
impl Debug for WorkflowRuntimeRequest
Source§impl<'de> Deserialize<'de> for WorkflowRuntimeRequest
impl<'de> Deserialize<'de> for WorkflowRuntimeRequest
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 WorkflowRuntimeRequest
impl PartialEq for WorkflowRuntimeRequest
Source§fn eq(&self, other: &WorkflowRuntimeRequest) -> bool
fn eq(&self, other: &WorkflowRuntimeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkflowRuntimeRequest
impl Serialize for WorkflowRuntimeRequest
impl StructuralPartialEq for WorkflowRuntimeRequest
Auto Trait Implementations§
impl Freeze for WorkflowRuntimeRequest
impl RefUnwindSafe for WorkflowRuntimeRequest
impl Send for WorkflowRuntimeRequest
impl Sync for WorkflowRuntimeRequest
impl Unpin for WorkflowRuntimeRequest
impl UnsafeUnpin for WorkflowRuntimeRequest
impl UnwindSafe for WorkflowRuntimeRequest
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