pub struct ExecutorContext {
pub message: Option<Message>,
pub task_id: TaskId,
pub stored_task: Option<Task>,
pub context_id: String,
pub metadata: Option<HashMap<String, Value>>,
pub user: Option<User>,
pub service_params: ServiceParams,
pub tenant: Option<String>,
}Expand description
Context passed to the AgentExecutor for each execution.
Fields§
§message: Option<Message>The message that triggered execution (None for cancellation without message).
task_id: TaskIdThe task ID being executed.
stored_task: Option<Task>The existing task, if this is a continuation.
context_id: StringContext ID grouping related interactions.
metadata: Option<HashMap<String, Value>>Request metadata.
user: Option<User>Authenticated user info.
service_params: ServiceParamsService parameters (headers/metadata) from the request.
tenant: Option<String>Optional tenant ID.
Implementations§
Auto Trait Implementations§
impl Freeze for ExecutorContext
impl RefUnwindSafe for ExecutorContext
impl Send for ExecutorContext
impl Sync for ExecutorContext
impl Unpin for ExecutorContext
impl UnsafeUnpin for ExecutorContext
impl UnwindSafe for ExecutorContext
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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