#[non_exhaustive]pub struct InitializeResult {
pub server_info: ServerInfo,
pub user_agent: String,
pub muse_home: String,
pub platform_family: PlatformFamily,
pub platform_os: PlatformOs,
pub schema: SchemaInfo,
pub granted_capabilities: Vec<CapabilityName>,
pub experimental_api: bool,
pub session_durability: Option<SessionDurability>,
pub sandbox_availability: Option<SandboxAvailability>,
pub sandbox_unavailable_reason: Option<SandboxUnavailableReason>,
}Expand description
The initialize result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server_info: ServerInfoServer identification.
user_agent: StringExact user-agent string presented to upstream model providers.
muse_home: StringAbsolute path of the muse home directory.
platform_family: PlatformFamilyServer runtime platform family.
platform_os: PlatformOsServer operating system.
schema: SchemaInfoEnvelope schema version and stable-surface fingerprint.
granted_capabilities: Vec<CapabilityName>Subset of the requested capabilities, plus policy-implicit grants. Fixed for the connection lifetime.
experimental_api: boolEcho of the effective negotiated experimental setting.
session_durability: Option<SessionDurability>Whether this host persists its sessions. Optional so the addition is
additive under the protocol spec; a v1 host always sends it, and a
client reads absent as durable because no server that omits it has the
ephemeral profile.
sandbox_availability: Option<SandboxAvailability>Whether this host can enforce the sandbox. Optional so the addition is additive under the protocol spec; a v1 host always sends it, and a client reads absent as unknown — the host predates the field, so the client falls back to its own probe rather than inventing an answer.
Why enforcement is impossible. Sent only when sandbox_availability
is unavailable; a client MUST NOT infer a reason when none is
sent.