Skip to main content

AgentRequestContext

Struct AgentRequestContext 

Source
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: String

Stable physical flow identity.

§request_id: String

Unique request/message correlation identity.

§ingress: String

Transport ingress source label.

§source_process: Option<RequestSourceProcess>

Platform process identity, when available.

§destination: String

Original destination address.

§destination_host: Option<String>

Destination host recovered by ingress.

§server_name: Option<String>

TLS SNI, when present.

§authority: Option<String>

Request authority.

§proxy_endpoint: Option<String>

Credential-free next-hop proxy authority.

§method: String

HTTP request or upgrade method.

§path: String

HTTP path and query.

§websocket: bool

Whether content is a complete WebSocket data message.

§sequence: u64

HTTP 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: DecodedContent

Complete decoded content.

§json: Option<Value>

Complete parsed JSON when present, including unrecognized fields.

§parsing_status: RequestParsingStatus

Projection 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: bool

Whether token actions can be applied at this forwarding boundary.

§model_writable: bool

Whether model actions have a supported protocol write-back location.

§agent: Option<AgentRequestProjection>

Known Agent request projection.

Trait Implementations§

Source§

impl Debug for AgentRequestContext

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AgentRequestContext

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for AgentRequestContext

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.