pub struct Request {
pub token: String,
pub connection_params: BTreeMap<String, String>,
pub subject: Subject,
pub agent_subject: Subject,
pub credential: Credential,
pub access: Access,
pub host: Host,
pub idempotency_key: String,
pub workflow: Map<String, Value>,
pub tool_refs: Vec<AgentToolRef>,
pub tool_refs_set: bool,
}Expand description
Carries execution-scoped metadata into typed operation handlers.
Fields§
§token: StringRequest token supplied to hosted HTTP operation handlers.
connection_params: BTreeMap<String, String>Connection parameters resolved by the host.
subject: SubjectSubject that initiated the request.
agent_subject: SubjectOriginal agent caller when an agent tool runs as a delegated subject.
credential: CredentialCredential used to authorize the request.
access: AccessAccess decision attached to the request.
host: HostPublic host metadata attached to the request.
idempotency_key: StringIdempotency key supplied by the host.
workflow: Map<String, Value>Workflow callback metadata uses a JSON-style lowerCamelCase object
such as runId, target.steps[0].app.name,
trigger.activationId, and trigger.event.specVersion.
tool_refs: Vec<AgentToolRef>Agent tool refs granted to the current operation request.
tool_refs_set: boolWhether the host attached a tool-ref context to this request.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
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>
Wrap the input message
T in a tonic::Request