import { type DefaultResearchArtifactContext } from "../artifacts/default-research-artifact-support.js"; import type { AgentSystem, ResolvedRuntimeState } from "../types.js"; import type { ChatSystemMessage } from "../../chat/types.js"; /** Context for hosted runtime state resolver. */ export type HostedRuntimeStateResolverContext = DefaultResearchArtifactContext & { projectId?: string | null; branchId?: string | null; steeringRevision?: number; slashCommandArtifactPathSeen?: boolean; userId?: string | null; submittedFormInputResult?: unknown; }; /** Input payload for hosted runtime state resolver. */ export type HostedRuntimeStateResolverInput = { context?: Record; system: string; structuredSystem?: readonly ChatSystemMessage[]; messages: readonly unknown[]; step: number; }; /** Result returned from hosted runtime state resolver. */ export type HostedRuntimeStateResolverResult = ResolvedRuntimeState & { context: Record; }; /** Input payload for hosted runtime system refresh. */ export type HostedRuntimeSystemRefreshInput = { taskContext: TContext; system: AgentSystem; }; /** Public API contract for hosted runtime system refresh. */ export type HostedRuntimeSystemRefresh = (input: HostedRuntimeSystemRefreshInput) => Promise | AgentSystem; /** Options accepted by create hosted runtime state resolver. */ export type CreateHostedRuntimeStateResolverOptions = { taskContext: TContext; refreshSystem?: HostedRuntimeSystemRefresh; }; /** Create hosted runtime state resolver. */ export declare function createHostedRuntimeStateResolver(options: CreateHostedRuntimeStateResolverOptions): (input: HostedRuntimeStateResolverInput) => Promise; //# sourceMappingURL=runtime-state-resolver.d.ts.map