import type { ToolDefinition } from "../../tool/index.js"; import type { AgentConfig } from "../types.js"; import type { RuntimeRemoteToolConfig } from "./mcp-server-tool-sources.js"; import { type SourceIntegrationPolicyManifest } from "../../integrations/source-policy.js"; import { type ToolExposureCheckpoint } from "./tool-exposure.js"; /** Internal schema-loading mode derived from the authored tools selector. */ export type RuntimeToolLoadingMode = "eager" | "deferred"; export declare const SOURCE_INTEGRATION_POLICY_CONTEXT_KEY = "__vfSourceIntegrationPolicy"; export type RuntimeToolFilterConfig = AgentConfig & { __vfForwardedIntegrationToolDefs?: Array<{ name: string; description: string; parameters: Record; }>; __vfToolExposureCheckpoint?: ToolExposureCheckpoint; __vfPersistToolExposureCheckpoint?: (checkpoint: ToolExposureCheckpoint) => void | Promise; __vfToolExposureCheckpointPersistenceRequired?: boolean; __vfToolLoadingMode?: RuntimeToolLoadingMode; __vfOperationalToolLoadingOverride?: "eager"; __vfPreassembledSkillContext?: boolean; } & RuntimeRemoteToolConfig; /** Effective runtime loading mode and the trusted source that selected it. */ export type RuntimeToolLoadingResolution = { mode: RuntimeToolLoadingMode; provenance: "host-operational-override" | "host-runtime-binding" | "tools-selector"; }; /** Resolve tool loading without accepting request context as configuration. */ export declare function resolveRuntimeToolLoading(config: AgentConfig): RuntimeToolLoadingResolution; export declare function getRuntimeAllowedRemoteTools(config: AgentConfig): string[] | undefined; /** Return trusted run-scoped source policy; malformed internal state fails closed. */ export declare function getRuntimeSourceIntegrationPolicy(config: AgentConfig): SourceIntegrationPolicyManifest | undefined; /** Read source policy stamped by the parent runtime into a tool execution context. */ export declare function getRuntimeSourceIntegrationPolicyFromContext(context: Record | undefined): SourceIntegrationPolicyManifest | undefined; export declare function getRuntimeProviderTools(config: AgentConfig): string[]; /** Return a supported trusted private exposure checkpoint. */ export declare function getRuntimeToolExposureCheckpoint(config: AgentConfig): ToolExposureCheckpoint | undefined; /** Return whether the trusted host requires checkpoint durability before continuation. */ export declare function isRuntimeToolExposureCheckpointPersistenceRequired(config: AgentConfig): boolean; /** Return the trusted private checkpoint persistence hook. */ export declare function getRuntimeToolExposureCheckpointPersister(config: AgentConfig): ((checkpoint: ToolExposureCheckpoint) => void | Promise) | undefined; export declare function getRuntimeForwardedIntegrationToolDefs(config: AgentConfig): ToolDefinition[] | undefined; //# sourceMappingURL=runtime-tool-config.d.ts.map