pub struct Agent {Show 23 fields
pub id: String,
pub name: String,
pub api_key_hash: String,
pub skills: Vec<String>,
pub description: Option<String>,
pub status: String,
pub max_concurrent_tasks: i64,
pub current_task_count: i64,
pub review_task_count: i64,
pub webhook_url: Option<String>,
pub webhook_events: Option<Vec<String>>,
pub config: Option<Value>,
pub model: Option<String>,
pub provider: Option<String>,
pub cost_tier: Option<String>,
pub capabilities: Vec<String>,
pub seniority: String,
pub role: String,
pub stale_timeout: i64,
pub last_seen_at: Option<String>,
pub created_at: String,
pub owner_id: Option<String>,
pub tags: Vec<String>,
}Fields§
§id: String§name: String§api_key_hash: String§skills: Vec<String>§description: Option<String>§status: String§max_concurrent_tasks: i64§current_task_count: i64§review_task_count: i64Count of tasks where this agent is reviewer and status = review
webhook_url: Option<String>§webhook_events: Option<Vec<String>>Optional JSON array of event types to push via webhook. If null/empty, all events trigger push.
config: Option<Value>§model: Option<String>§provider: Option<String>§cost_tier: Option<String>§capabilities: Vec<String>§seniority: Stringsenior | mid | junior
role: Stringorchestrator | executor
stale_timeout: i64Minutes before agent is considered stale/offline (default: 30)
last_seen_at: Option<String>§created_at: String§owner_id: Option<String>Optional owner (e.g. Clerk user_id). None in standalone OSS mode.
Free-form category tags (e.g. [“rust”, “frontend”, “devops”])
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Agent
impl<'de> Deserialize<'de> for Agent
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 Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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