pub struct AgentDispatchSpec {
pub agent_class: AgentClassRef,
pub prompt: String,
pub placement: TaskPlacement,
}Expand description
Minimal description of an agent run to be handed to forge.run.
A local stub until R094-F1 lands the canonical ForgeSpec type. Tower
constructs this from the AgentDispatch trigger + rendered prompt; the
forge client executes it. Production consumers convert
placement: tower_rules::TaskPlacement to task::TaskPlacement at the
boundary (the seam where the forge client implementation depends on the
task crate).
Fields§
§agent_class: AgentClassRefWhich agent class to instantiate, e.g. "gnome/fixer".
prompt: StringRendered prompt: template substituted with the delimited event payload.
placement: TaskPlacementWhere the agent runs (location × runtime).
Trait Implementations§
Source§impl Clone for AgentDispatchSpec
impl Clone for AgentDispatchSpec
Source§fn clone(&self) -> AgentDispatchSpec
fn clone(&self) -> AgentDispatchSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentDispatchSpec
impl Debug for AgentDispatchSpec
Source§impl PartialEq for AgentDispatchSpec
impl PartialEq for AgentDispatchSpec
impl StructuralPartialEq for AgentDispatchSpec
Auto Trait Implementations§
impl Freeze for AgentDispatchSpec
impl RefUnwindSafe for AgentDispatchSpec
impl Send for AgentDispatchSpec
impl Sync for AgentDispatchSpec
impl Unpin for AgentDispatchSpec
impl UnsafeUnpin for AgentDispatchSpec
impl UnwindSafe for AgentDispatchSpec
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