pub struct RequestContext {
pub subject: Option<SubjectContext>,
pub credential: Option<CredentialContext>,
pub access: Option<AccessContext>,
pub workflow: Option<Map<String, Value>>,
pub host: Option<HostContext>,
pub agent_subject: Option<SubjectContext>,
pub caller: Option<ProviderContext>,
pub invocation: Option<InvocationContext>,
pub tool_refs: Vec<AgentToolRef>,
pub tool_refs_set: bool,
pub request_meta: Option<RequestMetaContext>,
pub agent: Option<AgentInvocationContext>,
}Expand description
RequestContext bundles the caller, credential, access, and host metadata for one operation.
Native message type for gestalt.provider.v1.RequestContext.
Fields§
§subject: Option<SubjectContext>The subject field; None when unset.
credential: Option<CredentialContext>The credential field; None when unset.
access: Option<AccessContext>The access field; None when unset.
workflow: Option<Map<String, Value>>The workflow field; None when unset.
host: Option<HostContext>The host field; None when unset.
agent_subject: Option<SubjectContext>Original agent caller when an agent tool executes with delegated run-as identity.
The agent_subject field; None when unset.
caller: Option<ProviderContext>The caller field; None when unset.
invocation: Option<InvocationContext>The invocation field; None when unset.
tool_refs: Vec<AgentToolRef>Agent tool refs granted to the operation request, when the request is executing as an agent tool.
The tool_refs field.
tool_refs_set: boolPreserves the distinction between an omitted tool-ref context and an explicitly empty inherited tool-ref context.
The tool_refs_set field.
request_meta: Option<RequestMetaContext>The request_meta field; None when unset.
agent: Option<AgentInvocationContext>The agent field; None when unset.
Trait Implementations§
Source§impl Clone for RequestContext
impl Clone for RequestContext
Source§fn clone(&self) -> RequestContext
fn clone(&self) -> RequestContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestContext
impl Debug for RequestContext
Source§impl Default for RequestContext
impl Default for RequestContext
Source§fn default() -> RequestContext
fn default() -> RequestContext
Source§impl PartialEq for RequestContext
impl PartialEq for RequestContext
Source§fn eq(&self, other: &RequestContext) -> bool
fn eq(&self, other: &RequestContext) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RequestContext
Auto Trait Implementations§
impl Freeze for RequestContext
impl RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl UnsafeUnpin for RequestContext
impl UnwindSafe for RequestContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request