pub struct TurnInput {
pub user_message: String,
pub tools_invoked: Vec<String>,
pub trace_event: Option<Value>,
pub depth: u32,
pub frame: HashMap<String, Value>,
pub emit_targets: Vec<Uuid>,
pub vitals_gate: Option<String>,
pub vitals_phase: Option<String>,
pub vitals_trust: Option<f32>,
}Expand description
Input for a single agent turn (host fills; runtime does not call LLMs).
Fields§
§user_message: String§tools_invoked: Vec<String>§trace_event: Option<Value>§depth: u32Caller-supplied depth hint for metadata/logging only — enforcement uses internal crate::AinlRuntime depth.
frame: HashMap<String, Value>Frame variables required by procedural declared_reads during patch dispatch.
emit_targets: Vec<Uuid>After the episode row is written, EMIT_TO edges are inserted from episode_id to each target
(additive; default empty). Hosts/tests use this to wire emit routing in the same turn.
vitals_gate: Option<String>Cognitive vitals from the LLM completion that produced this turn (if available).
Written onto the EpisodicNode during episode persistence.
None for providers that do not return logprobs (Anthropic, Ollama, etc.).
vitals_phase: Option<String>§vitals_trust: Option<f32>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TurnInput
impl<'de> Deserialize<'de> for TurnInput
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 TurnInput
impl RefUnwindSafe for TurnInput
impl Send for TurnInput
impl Sync for TurnInput
impl Unpin for TurnInput
impl UnsafeUnpin for TurnInput
impl UnwindSafe for TurnInput
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