pub struct CustomAgentDefinition {
pub name: String,
pub description: String,
pub script_path: String,
pub package: Option<String>,
pub parameters: Value,
pub examples: Vec<CustomAgentExample>,
pub working_directory: Option<PathBuf>,
}Expand description
Custom agent definition - TypeScript-based agent
Fields§
§name: StringThe name of the agent
description: StringA brief description of the agent’s purpose
script_path: StringPath to the TypeScript implementation
package: Option<String>Package that defined this agent/workflow (optional for legacy/local agents)
parameters: ValueInput parameters schema (JSON Schema format, like tools)
examples: Vec<CustomAgentExample>Example input payloads to help users understand expected format
working_directory: Option<PathBuf>Working directory for this custom agent (defaults to package working_directory, DISTRI_HOME env var, or current directory)
Trait Implementations§
Source§impl Clone for CustomAgentDefinition
impl Clone for CustomAgentDefinition
Source§fn clone(&self) -> CustomAgentDefinition
fn clone(&self) -> CustomAgentDefinition
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 CustomAgentDefinition
impl Debug for CustomAgentDefinition
Source§impl<'de> Deserialize<'de> for CustomAgentDefinition
impl<'de> Deserialize<'de> for CustomAgentDefinition
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 CustomAgentDefinition
impl JsonSchema for CustomAgentDefinition
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 moreAuto Trait Implementations§
impl Freeze for CustomAgentDefinition
impl RefUnwindSafe for CustomAgentDefinition
impl Send for CustomAgentDefinition
impl Sync for CustomAgentDefinition
impl Unpin for CustomAgentDefinition
impl UnwindSafe for CustomAgentDefinition
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