pub struct RuntimeContext {
pub sender: WeakAgentSender,
pub checkpoints: Arc<dyn CheckpointStore>,
pub session_id: String,
pub model_route: String,
pub model: String,
pub approval_policy: ApprovalPolicy,
pub session_context: SessionContext,
pub metadata: BTreeMap<String, Value>,
pub role: AgentRole,
pub frontend: FrontendEventSink,
}Expand description
Durable runtime identity exposed while middleware starts a session.
Fields§
§sender: WeakAgentSenderThe sender.
checkpoints: Arc<dyn CheckpointStore>The checkpoints.
session_id: StringThe session identifier.
model_route: StringThe model route.
model: StringThe model.
approval_policy: ApprovalPolicyThe approval policy.
session_context: SessionContextThe session context.
metadata: BTreeMap<String, Value>The metadata.
role: AgentRoleThe role.
frontend: FrontendEventSinkThe frontend.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeContext
impl !UnwindSafe for RuntimeContext
impl Freeze for RuntimeContext
impl Send for RuntimeContext
impl Sync for RuntimeContext
impl Unpin for RuntimeContext
impl UnsafeUnpin for RuntimeContext
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