pub struct TaskAgentInput {
pub accepted_plan: Option<AcceptedTaskPlan>,
pub attachments: Vec<TurnPromptAttachment>,
pub clarification: Option<String>,
pub user_request: String,
}Expand description
Explicit input for a task’s own conversation, excluding session replay.
Continuations retain this task’s history only. The host must not copy the human transcript or another task’s provider conversation into this input.
Fields§
§accepted_plan: Option<AcceptedTaskPlan>Exact accepted plan required by an implementer; absent for a planner.
attachments: Vec<TurnPromptAttachment>Images retained across attempts and handed off with an accepted plan.
clarification: Option<String>Clarification or retry guidance explicitly addressed to this task.
user_request: StringOriginal user request, retained across this task’s attempts.
Implementations§
Source§impl TaskAgentInput
impl TaskAgentInput
Sourcepub fn validate(&self, definition: TaskAgentRole) -> Result<(), SessionError>
pub fn validate(&self, definition: TaskAgentRole) -> Result<(), SessionError>
Validates required role inputs without asserting plan acceptance.
§Errors
Returns an operation error for an empty request, missing implementer plan, incomplete plan provenance, or a plan supplied to a planner.
Trait Implementations§
Source§impl Clone for TaskAgentInput
impl Clone for TaskAgentInput
Source§impl Debug for TaskAgentInput
impl Debug for TaskAgentInput
Source§impl<'de> Deserialize<'de> for TaskAgentInput
impl<'de> Deserialize<'de> for TaskAgentInput
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
impl Eq for TaskAgentInput
Source§impl PartialEq for TaskAgentInput
impl PartialEq for TaskAgentInput
Source§impl Serialize for TaskAgentInput
impl Serialize for TaskAgentInput
impl StructuralPartialEq for TaskAgentInput
Auto Trait Implementations§
impl Forget for TaskAgentInput
impl Freeze for TaskAgentInput
impl RefUnwindSafe for TaskAgentInput
impl Send for TaskAgentInput
impl Sync for TaskAgentInput
impl Unpin for TaskAgentInput
impl UnsafeUnpin for TaskAgentInput
impl UnwindSafe for TaskAgentInput
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
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§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
Compare self to
key and return true if they are equal.