Struct Runtime Context
Generated from cargo doc --no-deps -p nemo-fabric-core.
pub struct RuntimeContext {
pub session_ref: Option<SessionRef>,
pub runtime_id: String,
pub invocation_id: String,
pub request_id: String,
pub environment: EnvironmentHandle,
pub artifacts: ArtifactManifest,
pub telemetry: Option<RuntimeTelemetryContext>,
pub deadline_millis: Option<u64>,
pub state_dir: Option<PathBuf>,
}
Context generated for one invocation of a started runtime.
Fields
session_ref: Option<SessionRef>
Explicit durable session selection, supplied only to opted-in adapters.
runtime_id: String
Runtime handle id.
invocation_id: String
Invocation handle id.
request_id: String
Request id.
environment: EnvironmentHandle
Prepared execution environment.
artifacts: ArtifactManifest
Artifact manifest visible to the adapter at invocation start.
telemetry: Option<RuntimeTelemetryContext>
Runtime telemetry context generated for this invocation.
deadline_millis: Option<u64>
Unix time in milliseconds by which the adapter should return its result. Present when runtime.timeout_seconds is set, shortly before Fabric’s invocation timeout.
state_dir: Option<PathBuf>
Absolute folder for the adapter’s native state, present when runtime.keep_state is set. Every runtime of the agent gets the same folder, and Fabric lets only one running runtime use it at a time.
Trait Implementations
impl Clone for RuntimeContext
impl Clone for RuntimeContext
clone
fn clone(&self) -> Self
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for RuntimeContext
impl Debug for RuntimeContext
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for RuntimeContext
impl<'de> Deserialize<'de> for RuntimeContext
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl JsonSchema for RuntimeContext
impl JsonSchema for RuntimeContext
schema_name
fn schema_name() -> Cow<'static, str>
schema_id
fn schema_id() -> Cow<'static, str>
json_schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
inline_schema
fn inline_schema() -> bool
impl PartialEq for RuntimeContext
impl PartialEq for RuntimeContext
eq
fn eq(&self, other: &Self) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for RuntimeContext
impl Serialize for RuntimeContext
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for RuntimeContext
impl StructuralPartialEq for RuntimeContext