pub struct ActionMetadata {
pub name: String,
pub description: String,
pub input_schema: Value,
pub output_schema: Option<Value>,
}Expand description
Metadata describing an action
Fields§
§name: StringAction name (unique within an agent)
description: StringHuman-readable description
input_schema: ValueJSON Schema for input validation
output_schema: Option<Value>JSON Schema for output (optional)
Trait Implementations§
Source§impl Clone for ActionMetadata
impl Clone for ActionMetadata
Source§fn clone(&self) -> ActionMetadata
fn clone(&self) -> ActionMetadata
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 ActionMetadata
impl Debug for ActionMetadata
Source§impl<'de> Deserialize<'de> for ActionMetadata
impl<'de> Deserialize<'de> for ActionMetadata
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 ActionMetadata
impl RefUnwindSafe for ActionMetadata
impl Send for ActionMetadata
impl Sync for ActionMetadata
impl Unpin for ActionMetadata
impl UnwindSafe for ActionMetadata
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