pub struct AgentRequestContext {Show 23 fields
pub flow_id: String,
pub request_id: String,
pub ingress: String,
pub source_process: Option<RequestSourceProcess>,
pub destination: String,
pub destination_host: Option<String>,
pub server_name: Option<String>,
pub authority: Option<String>,
pub proxy_endpoint: Option<String>,
pub method: String,
pub path: String,
pub websocket: bool,
pub sequence: u64,
pub message_type: Option<RequestMessageType>,
pub headers: Vec<(String, String)>,
pub body: DecodedContent,
pub json: Option<Value>,
pub parsing_status: RequestParsingStatus,
pub harness: Option<RequestHarness>,
pub auth_token: Option<String>,
pub auth_token_writable: bool,
pub model_writable: bool,
pub agent: Option<AgentRequestProjection>,
}Expand description
Complete decision context for one HTTP request or client WebSocket data message.
Fields§
§flow_id: StringStable physical flow identity.
request_id: StringUnique request/message correlation identity.
ingress: StringTransport ingress source label.
source_process: Option<RequestSourceProcess>Platform process identity, when available.
destination: StringOriginal destination address.
destination_host: Option<String>Destination host recovered by ingress.
server_name: Option<String>TLS SNI, when present.
Request authority.
proxy_endpoint: Option<String>Credential-free next-hop proxy authority.
method: StringHTTP request or upgrade method.
path: StringHTTP path and query.
websocket: boolWhether content is a complete WebSocket data message.
sequence: u64HTTP request number (1) or client data-message number within this flow.
message_type: Option<RequestMessageType>Original WebSocket type; null for HTTP, including upgrade requests.
headers: Vec<(String, String)>Headers as name/value pairs, preserving duplicates. Headers recognized by the MITM credential-header predicate are omitted.
body: DecodedContentComplete decoded content.
json: Option<Value>Complete parsed JSON when present, including unrecognized fields.
parsing_status: RequestParsingStatusProjection outcome, also supplied for unknown requests.
harness: Option<RequestHarness>Available request-side Harness identity and declarations.
auth_token: Option<String>Selected model-service credential, without its authentication scheme prefix.
auth_token_writable: boolWhether token actions can be applied at this forwarding boundary.
model_writable: boolWhether model actions have a supported protocol write-back location.
agent: Option<AgentRequestProjection>Known Agent request projection.