pub struct Action {
pub id: Uuid,
pub action_type: String,
pub resource: String,
pub agent_id: String,
pub parameters: HashMap<String, Value>,
pub timestamp: DateTime<Utc>,
}Expand description
Represents an action an AI agent wants to perform.
Actions are the fundamental unit of evaluation. Every tool call, data access, or operation an agent performs is modeled as an Action.
Fields§
§id: UuidUnique identifier for this action.
action_type: StringThe type of action (e.g., “tool_call”, “file_read”, “file_write”, “network_request”).
resource: StringThe specific tool or resource being accessed (e.g., “bash”, “read_file”, “send_email”).
agent_id: StringThe agent performing the action.
parameters: HashMap<String, Value>Key-value parameters of the action (e.g., command, file path, URL).
timestamp: DateTime<Utc>When this action was requested.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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 Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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