import type { HostedChatRuntimeAgent } from "./chat-runtime-contract.js"; import type { Agent } from "../types.js"; import type { SourceIntegrationPolicyManifest } from "../../integrations/source-policy.js"; /** Public API contract for hosted chat runtime agent adapter runner. */ export type HostedChatRuntimeAgentAdapterRunner = (operation: () => Promise) => Promise; /** Public API contract for hosted chat runtime agent adapter warning. */ export type HostedChatRuntimeAgentAdapterWarning = { toolCallId: string; inputPreview: string; }; /** Input payload for hosted chat runtime agent adapter. */ export type HostedChatRuntimeAgentAdapterInput = { runtimeAgent: Pick; sourceIntegrationPolicy: SourceIntegrationPolicyManifest; runId?: string; agentId?: string; conversationId?: string; projectId?: string; projectSlug?: string; /** * @deprecated Ignored. Hosted auth tokens are scoped to first-party MCP and * are no longer forwarded to the runtime agent context. */ authToken?: string; maxOutputTokens?: number; resolveProjectContext?: () => { projectId?: string; projectSlug?: string; }; runStream?: HostedChatRuntimeAgentAdapterRunner; warnOrphanedToolInput?: (message: string, metadata: HostedChatRuntimeAgentAdapterWarning) => void; }; /** Create hosted chat runtime agent adapter. */ export declare function createHostedChatRuntimeAgentAdapter(input: HostedChatRuntimeAgentAdapterInput): HostedChatRuntimeAgent; //# sourceMappingURL=chat-runtime-agent-adapter.d.ts.map