pub struct TaskAgentAssignment {
pub agent: AgentSelection,
pub definition: BuiltinAgentDefinition,
}Expand description
Immutable role and provider/model selection assigned to one task.
A caller captures the selection once, before admission. A future chain can reuse that selection across its tasks without reading mutable session settings again. Permissions still resolve from the role and session at execution time; assignment never grants access.
Fields§
§agent: AgentSelectionCaptured provider/model pair, independent of the role.
definition: BuiltinAgentDefinitionInstructions and permission restriction used for every attempt.
Trait Implementations§
Source§impl Clone for TaskAgentAssignment
impl Clone for TaskAgentAssignment
impl Copy for TaskAgentAssignment
Source§impl Debug for TaskAgentAssignment
impl Debug for TaskAgentAssignment
impl Eq for TaskAgentAssignment
Source§impl PartialEq for TaskAgentAssignment
impl PartialEq for TaskAgentAssignment
impl StructuralPartialEq for TaskAgentAssignment
Auto Trait Implementations§
impl Freeze for TaskAgentAssignment
impl RefUnwindSafe for TaskAgentAssignment
impl Send for TaskAgentAssignment
impl Sync for TaskAgentAssignment
impl Unpin for TaskAgentAssignment
impl UnsafeUnpin for TaskAgentAssignment
impl UnwindSafe for TaskAgentAssignment
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