pub struct WorkflowAgentDefinition {
pub name: String,
pub description: String,
pub version: String,
pub definition: Value,
pub input_schema: Option<Value>,
pub triggers: Vec<Trigger>,
}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).
triggers: Vec<Trigger>How this workflow is triggered. Defaults to on_call if empty.
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 ComposeSchema for WorkflowAgentDefinition
impl ComposeSchema for WorkflowAgentDefinition
Source§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
Source§impl JsonSchema for WorkflowAgentDefinition
impl JsonSchema for WorkflowAgentDefinition
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for WorkflowAgentDefinition
impl Serialize for WorkflowAgentDefinition
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