pub struct EventActions {
pub state_delta: Option<Map<String, Value>>,
pub artifact_delta: Option<BTreeMap<String, i64>>,
pub requested_tool_confirmations: BTreeMap<String, ToolConfirmation>,
pub requested_auth_configs: BTreeMap<String, Config>,
pub skip_summarization: bool,
pub transfer_to_agent: String,
pub escalate: bool,
pub compaction: Option<EventCompaction>,
}Expand description
The actions attached to an event.
state_delta and artifact_delta keep the None/empty distinction on the wire: None
omits the key and Some writes it, even when empty; null is never written.
Fields§
§state_delta: Option<Map<String, Value>>State changes, set by the agent context implementation.
artifact_delta: Option<BTreeMap<String, i64>>Artifact updates: filename to version.
requested_tool_confirmations: BTreeMap<String, ToolConfirmation>Tool confirmations requested, keyed by function call ID.
requested_auth_configs: BTreeMap<String, Config>The credential requests that tools made in this event, keyed by function call ID, since one function response event can answer several calls.
Session services persist a request and the Agent Engine server sends it to clients
unredacted, so it must not carry the secrets the tool was configured with: store the
output of crate::toolauth::Config::without_secrets. The in-memory, database and
Vertex AI session services refuse to append an event whose request does not decode as a
crate::toolauth::Config (see crate::state_util::check_requested_auth_configs).
skip_summarization: boolIf true, the model is not called to summarize the function response.
transfer_to_agent: StringIf set, the event transfers to the named agent.
escalate: boolThe agent is escalating to a higher-level agent.
compaction: Option<EventCompaction>Marks this event as a context-compaction summary; written by the framework only.