pub struct Request {
pub path_type: Path,
pub name: String,
pub command: Vec<String>,
pub description: String,
pub interval_seconds: Option<u64>,
pub overwrite: bool,
pub base: RequestBase,
}Fields§
§path_type: Path§name: StringUser-facing identifier. Unique per agent instance hierarchy —
a second schedule with the same (name, aih) fails the
schedules UNIQUE constraint unless overwrite is set.
agents tasks run tags every streamed output line with this
name so the caller can attribute output to its source schedule.
command: Vec<String>argv to invoke on each scheduled poll.
description: StringHuman-readable label. Required — surfaces on every
agents tasks list row, and the runner uses it in
observability output.
interval_seconds: Option<u64>Floor on wall-clock seconds between invocations. None
marks a oneshot schedule — the runner fires it once on
the next poll and deletes the row. Some(n) is a recurring
schedule with n seconds as the minimum gap between
invocations.
overwrite: boolShadow an existing (name, agent_instance_hierarchy) schedule
instead of erroring on collision: a NEW row is inserted with
version = max + 1. Older versions never list or run again but
are kept so run history stays per-version; the new version has
no runs yet, so it fires fresh.
base: RequestBaseTrait Implementations§
Source§impl CommandRequest for Request
impl CommandRequest for Request
fn into_command(&self) -> Vec<String>
Source§fn request_base(&self) -> &RequestBase
fn request_base(&self) -> &RequestBase
RequestBase envelope (jq /
python / timeout / max_tokens). Every leaf embeds one,
so the implementation is &self.base.Source§fn request_base_mut(&mut self) -> Option<&mut RequestBase>
fn request_base_mut(&mut self) -> Option<&mut RequestBase>
RequestBase
envelope, when it has one (Some(&mut self.base)). Lets a
caller inject the envelope controls (e.g. timeout /
max_tokens) onto an already-parsed request in place, without
re-serializing it through argv — used by the MCP server.Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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>,
impl Eq for Request
Source§impl JsonSchema for Request
impl JsonSchema for Request
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more