pub struct AgentTask {Show 15 fields
pub agent_id: AgentId,
pub phase_id: PhaseId,
pub prompt: String,
pub model: Option<String>,
pub description: Option<String>,
pub role: Option<String>,
pub name: Option<String>,
pub agent_seq: u32,
pub allowlist: Option<ToolPolicy>,
pub workdir: PathBuf,
pub mcp_endpoint: Option<McpEndpoint>,
pub timeout: Option<Duration>,
pub output_schema: Option<Value>,
pub workdir_override: Option<PathBuf>,
pub thread_id: Option<String>,
}Fields§
§agent_id: AgentId§phase_id: PhaseId§prompt: String§model: Option<String>§description: Option<String>§role: Option<String>§name: Option<String>§agent_seq: u32§allowlist: Option<ToolPolicy>§workdir: PathBuf§mcp_endpoint: Option<McpEndpoint>Data-plane injection point (Luft MCP endpoint).
timeout: Option<Duration>Idle timeout: maximum silence (no ACP notifications) before the backend
kills the session. None = backend default (5 min).
output_schema: Option<Value>Optional JSON Schema (M4) for validating agent output. When set, the runtime validates the agent’s output against this schema and may retry or reject if validation fails.
workdir_override: Option<PathBuf>Per-agent working directory override from Lua working_folder opt.
thread_id: Option<String>Thread ID for cross-process conversation resume (Loom SqliteSaver).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentTask
impl<'de> Deserialize<'de> for AgentTask
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 AgentTask
impl RefUnwindSafe for AgentTask
impl Send for AgentTask
impl Sync for AgentTask
impl Unpin for AgentTask
impl UnsafeUnpin for AgentTask
impl UnwindSafe for AgentTask
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