pub struct WorkflowAgentDefinition {
pub name: String,
pub description: String,
pub version: String,
pub definition: Value,
pub input_schema: Option<Value>,
}Expand description
Definition for a workflow-based agent.
The workflow definition is stored as JSON to avoid crate dependency on distri-workflow.
Deserialize to distri_workflow::WorkflowDefinition at execution time.
Fields§
§name: String§description: String§version: String§definition: ValueThe workflow definition as JSON.
input_schema: Option<Value>JSON Schema for required inputs (validated before execution).
Trait Implementations§
Source§impl Clone for WorkflowAgentDefinition
impl Clone for WorkflowAgentDefinition
Source§fn clone(&self) -> WorkflowAgentDefinition
fn clone(&self) -> WorkflowAgentDefinition
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 WorkflowAgentDefinition
impl Debug for WorkflowAgentDefinition
Source§impl<'de> Deserialize<'de> for WorkflowAgentDefinition
impl<'de> Deserialize<'de> for WorkflowAgentDefinition
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 WorkflowAgentDefinition
impl RefUnwindSafe for WorkflowAgentDefinition
impl Send for WorkflowAgentDefinition
impl Sync for WorkflowAgentDefinition
impl Unpin for WorkflowAgentDefinition
impl UnsafeUnpin for WorkflowAgentDefinition
impl UnwindSafe for WorkflowAgentDefinition
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