import { type HostToolSet, type RemoteMCPToolSourceConfig, type RemoteToolSource, type ToolSet } from "../../tool/index.js"; import { type VeryfrontCloudContext } from "../../provider/veryfront-cloud/context.js"; import type { HostedChatRuntimeCreationOptions, HostedChatRuntimeCreationResult } from "./chat-runtime-contract.js"; import { type HostedChatRuntimeToolAssemblyResult, type HostedHostToolPolicy, type PrepareHostedChatRuntimeToolAssemblyInput } from "./chat-runtime-tool-assembly.js"; import type { AgentServiceMcpServerConfig } from "../service/mcp-server-config.js"; import { type HostedRuntimeStateResolverContext } from "./runtime-state-resolver.js"; import type { ProjectSteeringMutationResult } from "../project/steering-mutation.js"; import type { RuntimeAgentMarkdownDefinition, RuntimeAgentThinkingConfig } from "../runtime/agent-definition.js"; import type { AgentSystem } from "../types.js"; import type { SourceIntegrationPolicyManifest } from "../../integrations/source-policy.js"; /** Configuration used by default hosted chat runtime. */ export type DefaultHostedChatRuntimeConfig = { apiUrl: string; apiMcpUrl: string; studioMcpUrl?: string | null; mcpServers?: readonly AgentServiceMcpServerConfig[]; }; /** Public API contract for default hosted chat runtime logger. */ export type DefaultHostedChatRuntimeLogger = { warn(message: string, metadata?: Record): void; }; /** Options accepted by default hosted chat runtime creation. */ export type DefaultHostedChatRuntimeCreationOptions = HostedChatRuntimeCreationOptions & { userId?: string; }; /** Context for default hosted chat runtime task. */ export type DefaultHostedChatRuntimeTaskContext = HostedRuntimeStateResolverContext & { authToken: string; runId?: string; agentId?: string; projectId: string; projectSlug?: string; branchId: string | null; runtimeTargetKind?: DefaultHostedChatRuntimeCreationOptions["runtimeTargetKind"]; runtimeTargetEnvironmentId?: string | null; model: string | undefined; clientProfile?: DefaultHostedChatRuntimeCreationOptions["clientProfile"]; conversationId?: string; userId?: string; parentRunId?: string; parentMessageId?: string; availableSkillIds?: string[]; skillSelectorPolicy?: DefaultHostedChatRuntimeCreationOptions["skillSelectorPolicy"]; /** Per-run skill id -> discovered SKILL.md source path (owner-aware catalog). */ skillSourcePaths?: Readonly>; publishParentRunEvents?: DefaultHostedChatRuntimeCreationOptions["publishParentRunEvents"]; availableToolNames?: string[]; submittedFormInputResult?: DefaultHostedChatRuntimeCreationOptions["submittedFormInputResult"]; }; /** Input payload for create default hosted chat runtime context. */ export type CreateDefaultHostedChatRuntimeContextInput = { options: DefaultHostedChatRuntimeCreationOptions; modelId: string; }; /** Input payload for default hosted chat runtime system refresh. */ export type DefaultHostedChatRuntimeSystemRefreshInput = { taskContext: DefaultHostedChatRuntimeTaskContext; liveProjectSteering: NonNullable; toolAssembly: HostedChatRuntimeToolAssemblyResult; }; /** Input payload for default hosted chat runtime steering mutation. */ export type DefaultHostedChatRuntimeSteeringMutationInput = { mutation: ProjectSteeringMutationResult; taskContext: DefaultHostedChatRuntimeTaskContext; }; /** Input payload for default hosted chat runtime project switch. */ export type DefaultHostedChatRuntimeProjectSwitchInput = { projectId: string; projectSlug?: string; taskContext: DefaultHostedChatRuntimeTaskContext; }; /** Options accepted by create default hosted chat runtime. */ export type CreateDefaultHostedChatRuntimeOptions = { options: DefaultHostedChatRuntimeCreationOptions; /** Service-owned authorization ceiling applied to Framework host tools. */ hostToolPolicy?: HostedHostToolPolicy; sourceIntegrationPolicy: SourceIntegrationPolicyManifest; config: DefaultHostedChatRuntimeConfig; buildLocalTools: (taskContext: DefaultHostedChatRuntimeTaskContext) => HostToolSet | Promise; cleanup?: () => Promise; createTaskContext?: (input: CreateDefaultHostedChatRuntimeContextInput) => DefaultHostedChatRuntimeTaskContext; refreshSystem?: (input: DefaultHostedChatRuntimeSystemRefreshInput) => Promise | AgentSystem; onSteeringMutation?: (input: DefaultHostedChatRuntimeSteeringMutationInput) => Promise | void; onStudioProjectSwitch?: (input: DefaultHostedChatRuntimeProjectSwitchInput) => Promise | boolean; projectScopedRemoteToolOptions?: PrepareHostedChatRuntimeToolAssemblyInput["projectScopedRemoteToolOptions"]; createRemoteToolSource?: (config: RemoteMCPToolSourceConfig) => RemoteToolSource; traceLocalTools?: PrepareHostedChatRuntimeToolAssemblyInput["traceLocalTools"]; preloadLatestConversationUserText?: boolean; logger?: DefaultHostedChatRuntimeLogger; }; /** @internal Scope local tool execution and sanitize errors without trusted provenance. */ export declare function scopeHostedRuntimeTools(input: { tools: ToolSet; taskContext: DefaultHostedChatRuntimeTaskContext; cloudContext: VeryfrontCloudContext; }): ToolSet; /** Create default hosted chat runtime. */ export declare function createDefaultHostedChatRuntime(input: CreateDefaultHostedChatRuntimeOptions): Promise; //# sourceMappingURL=default-chat-runtime.d.ts.map