import type { ChatRuntimeOverrides } from "../../chat/types.js"; import { type HostedChatRequest } from "./chat-request.js"; import type { RuntimeAgentMarkdownDefinition, RuntimeAgentThinkingConfig } from "../runtime/agent-definition.js"; import { type RuntimeClientProfile } from "../runtime/client-profile.js"; import { type ToolExposureCheckpoint } from "../runtime/tool-exposure.js"; /** Request payload for hosted runtime request config. */ export type HostedRuntimeRequestConfigRequest = Pick; /** Public API contract for hosted runtime request config agent. */ export type HostedRuntimeRequestConfigAgent = Pick; /** Input payload for resolve hosted runtime request config. */ export type ResolveHostedRuntimeRequestConfigInput = { request: HostedRuntimeRequestConfigRequest; agentConfig: HostedRuntimeRequestConfigAgent; resolveModelId: (modelId: string | undefined) => string | undefined; resolveModelThinking?: (modelId: string | undefined) => RuntimeAgentThinkingConfig | undefined; }; /** Configuration used by resolved hosted runtime request. */ export type ResolvedHostedRuntimeRequestConfig = { effectiveRuntimeOverrides: ChatRuntimeOverrides | undefined; requestedModel: string | undefined; clientProfile: RuntimeClientProfile | null; requestedThinking: RuntimeAgentThinkingConfig | undefined; requestedTemperature: number | undefined; requestedMaxSteps: number | undefined; requestedMaxOutputTokens: number | undefined; requestedAllowedTools: string[] | undefined; requestedAllowedProviderTools: string[]; includeRuntimeEssentialToolsWhenEmpty: boolean; /** Tool names the agent config denied explicitly; never re-added downstream. */ deniedToolNames: string[] | undefined; }; /** Read the latest checkpoint overwritten by the authenticated server caller. */ export declare function getServerResolvedToolExposureCheckpoint(forwardedProps: Record | undefined, serverEnvelopeVerified: boolean): ToolExposureCheckpoint | undefined; /** Return forwarded hosted model ID. */ export declare function getForwardedHostedModelId(forwardedProps: Record | undefined): string | undefined; /** Return forwarded hosted runtime overrides. */ export declare function getForwardedHostedRuntimeOverrides(forwardedProps: Record | undefined): ChatRuntimeOverrides | undefined; /** Resolves hosted runtime thinking override. */ export declare function resolveHostedRuntimeThinkingOverride(input: { configuredThinking: RuntimeAgentThinkingConfig | undefined; requestedThinking: false | number | undefined; }): RuntimeAgentThinkingConfig | undefined; /** Resolve the explicit request tool selector or fall back to configured agent bindings. */ export declare function resolveHostedRuntimeAllowedTools(input: { configuredTools: RuntimeAgentMarkdownDefinition["tools"]; configuredDeniedTools?: RuntimeAgentMarkdownDefinition["deniedTools"]; configuredDelegates: RuntimeAgentMarkdownDefinition["delegates"]; configuredSkills: RuntimeAgentMarkdownDefinition["skills"]; requestedTools: string[] | undefined; }): string[] | undefined; /** Resolve provider-native tool bindings without widening direct tool access. */ export declare function resolveHostedRuntimeAllowedProviderTools(input: { configuredProviderTools: RuntimeAgentMarkdownDefinition["providerTools"]; requestedTools: string[] | undefined; }): string[]; /** Configuration used by resolve hosted runtime request. */ export declare function resolveHostedRuntimeRequestConfig(input: ResolveHostedRuntimeRequestConfigInput): ResolvedHostedRuntimeRequestConfig; //# sourceMappingURL=runtime-request-config.d.ts.map