pub struct ToolResultRemedy {
pub kind: ToolResultRemedyKind,
pub servers: Option<Vec<String>>,
pub provider: Option<RemedyLoginProvider>,
pub path: Option<String>,
pub managed: Option<bool>,
pub feature: Option<RemedyFeature>,
pub cause: Option<RemedyFeatureCause>,
pub policy_kind: Option<RemedyPolicyKind>,
}Expand description
The fix a host can offer for what a tool_result reports, stamped from
structured producer state (never parsed from the result text), carried
as ToolResultMeta::remedy (CLI 2.1.276+). Only the parameters the
kind needs are present.
Fields§
§kind: ToolResultRemedyKindWhat the host can fix. New kinds are additive — treat
ToolResultRemedyKind::Unknown as no remedy.
servers: Option<Vec<String>>mcp_needs_auth / mcp_disabled: the server names as configured.
mcp_required_missing: the name patterns the agent definition
requires that no connected server matches.
provider: Option<RemedyLoginProvider>auth_expired / auth_overridden / auth_missing_scope /
design_needs_authorization: whose login the fix names.
path: Option<String>outside_reads_blocked: the path the read block refused, when the
refusal names one. staged_for_review: the settings file the write
was held for.
managed: Option<bool>outside_reads_blocked: an organization policy sets the block, so
the user cannot remove it. auth_overridden: the overriding
credential was injected by the host environment, so nothing in this
session can unset it.
feature: Option<RemedyFeature>feature_disabled / policy_denied: the feature that is off.
cause: Option<RemedyFeatureCause>feature_disabled: why the feature is off.
policy_kind: Option<RemedyPolicyKind>policy_denied: the verdict.
Trait Implementations§
Source§impl Clone for ToolResultRemedy
impl Clone for ToolResultRemedy
Source§fn clone(&self) -> ToolResultRemedy
fn clone(&self) -> ToolResultRemedy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more