import { type Agent, type AgentMessage as Message, type AgentResponse } from "../agent/index.js"; import type { AgentServiceSandboxToolsOptions, AgentServiceSandboxToolsResult } from "../sandbox/index.js"; import { type Tool } from "../tool/index.js"; import { type AgentRunSessionManager } from "./session-manager.js"; import type { RuntimeRunAgentInput } from "./schema.js"; /** * SSE frame name carrying AGENT_RUN_MODEL_CALL_CONTEXT to veryfront-api. Not an * AG-UI event: veryfront-api persists it under its own event type rather than * folding it into the run's public event sequence. */ export declare const MODEL_CALL_CONTEXT_SSE_EVENT_NAME = "AgentRunModelCallContext"; /** * Explicit `false` entries in the agent's tool map are authoritative denials. * Remote grants and forwarded integration tool definitions are appended to * the runtime tool surface independently of the merged tool map, so denied * names must be subtracted from them too or a denied remote tool would stay * discoverable and callable. */ export declare function getExplicitlyDeniedToolNames(agent: Agent): ReadonlySet; export interface RuntimeAgentStreamExecutionDeps { sessionManager: AgentRunSessionManager; localTools?: Record; projectAgentSandbox?: { apiUrl?: string; authToken?: string; branchId?: string | null; projectId?: string | null; sandboxEndpoint?: string; }; createBashTool?: AgentServiceSandboxToolsOptions["createBashTool"]; createAgentServiceSandboxTools?: (input: AgentServiceSandboxToolsOptions) => Promise; createRuntime?: (agent: Agent, mergedTools: Agent["config"]["tools"]) => { stream: (messages: Message[], context?: Record, callbacks?: { onFinish?: (response: AgentResponse) => void; }, modelOverride?: string, maxOutputTokensOverride?: number, abortSignal?: AbortSignal) => Promise>; }; } export declare function buildMergedTools(agent: Agent, input: RuntimeRunAgentInput, sessionManager: AgentRunSessionManager, availableForwardedToolNames?: string[], availableLocalTools?: Record): { [x: string]: boolean | Tool; } | undefined; export declare function createRuntimeAgentStreamResponse(input: RuntimeRunAgentInput, agent: Agent, deps: RuntimeAgentStreamExecutionDeps): Promise; //# sourceMappingURL=run-stream.d.ts.map