pub enum Autonomy {
Continue,
Review,
Ask,
}Expand description
How far the agent carries a turn on its own before handing back.
ORTHOGONAL to HitlMode/RiskTier. Those answer “may this ACTION run?”
and are enforced per tool call; this answers “is the TURN over?” and is
enforced once, at the loop’s termination branch. Neither may overrule the
other: Continue never releases a risk gate, and an approved gate never
extends a turn. Issue #001 is what happens when only the prompt layer
carries this — the model reads “已授權工作持續推進” as a suggestion because
nothing in the runtime ever re-entered the loop.
Variants§
Continue
Mode 1, 持續推進 — a turn that ends with work still open is nudged back into the loop instead of returning. Never implicit, not even for unattended runs: handing an agent the right to keep going is written down in a profile, because nobody is in the room to take it back.
Review
Mode 2, 需要再審核 — the agent finishes its own work but must present it for review before anything further; the turn ends where it would anyway.
Ask
Mode 3, 用戶審核 — hand back at every natural stop. The strictest of the three and the default when nothing is stated.
Trait Implementations§
impl Copy for Autonomy
Source§impl<'de> Deserialize<'de> for Autonomy
impl<'de> Deserialize<'de> for Autonomy
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 Autonomy
Source§impl JsonSchema for Autonomy
impl JsonSchema for Autonomy
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 Autonomy
Auto Trait Implementations§
impl Freeze for Autonomy
impl RefUnwindSafe for Autonomy
impl Send for Autonomy
impl Sync for Autonomy
impl Unpin for Autonomy
impl UnsafeUnpin for Autonomy
impl UnwindSafe for Autonomy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.