import { type RuntimeAgentDiscoveryDeps } from "../../../channels/control-plane.js"; import { type RuntimeAgentStreamExecutionDeps } from "../../../internal-agents/run-stream.js"; import { resolveRuntimeOwnerInvokeUrl } from "../../../internal-agents/runtime-owner.js"; import { type InternalAgentStreamRequest, type RuntimeAgentSourceContext } from "../../../internal-agents/schema.js"; import { BaseHandler } from "../response/base.js"; import type { HandlerContext, HandlerMetadata, HandlerResult } from "../types.js"; import { normalizeSourceIntegrationPolicy } from "../../../integrations/source-policy.js"; export interface AgentStreamHandlerDeps extends RuntimeAgentDiscoveryDeps, RuntimeAgentStreamExecutionDeps { resolveRuntimeOwnerInvokeUrl?: typeof resolveRuntimeOwnerInvokeUrl; getLocalTools?: (agentId: string) => RuntimeAgentStreamExecutionDeps["localTools"]; loadAgentSourceEnvironment?: AgentSourceEnvironmentLoader; normalizeSourceIntegrationPolicy?: typeof normalizeSourceIntegrationPolicy; } type AgentSourceTargetIdentity = Pick; export type AgentSourceEnvironmentLoader = (ctx: HandlerContext, sourceContext: RuntimeAgentSourceContext, targetIdentity: AgentSourceTargetIdentity, apiAuthToken: string, signal?: AbortSignal) => Promise>; export declare class AgentStreamHandler extends BaseHandler { private readonly deps; metadata: HandlerMetadata; constructor(deps?: AgentStreamHandlerDeps); private withAgentSourceContext; handle(req: Request, ctx: HandlerContext): Promise; } export {}; //# sourceMappingURL=agent-stream.handler.d.ts.map