import { p as Primitive, t as AnyCredentialSet } from "./CredentialSet-lUr_8nN3.mjs"; import { c as AnyZodSchema, d as InputSchema, l as InferSchema, p as JsonObject, u as InferSchemaOrUndefined } from "./schemas-DXcT2SRm.mjs"; import { n as AnyMcpServer } from "./McpServer-BsxD4QgA.mjs"; import { t as AnyMessagingGateway } from "./types-BsYmmIlq.mjs"; import { a as SkillSource, n as AnySandbox } from "./Sandbox-JUa1Ghwp.mjs"; import { C as TriggerEntry, M as Duration, T as ValidTriggerEntry } from "./index-BqY2HTnE.mjs"; import { f as RetryConfig, n as AnyOperation } from "./Operation-BKM2cNZp.mjs"; import { y as ResolvedCredentialSet } from "./credential-requirements-PoSYqj0L.mjs"; import { z } from "zod"; //#region src/agent/schemas.d.ts declare const AgentManifestSchema: z.ZodObject<{ manifestVersion: z.ZodLiteral<1>; type: z.ZodLiteral<"agent">; id: z.ZodString; authoredAgentId: z.ZodString; name: z.ZodString; runtimeKind: z.ZodEnum<{ declarative: "declarative"; runnable: "runnable"; }>; description: z.ZodOptional; systemPrompt: z.ZodString; model: z.ZodString; thinkingLevel: z.ZodEnum<{ off: "off"; minimal: "minimal"; low: "low"; medium: "medium"; high: "high"; xhigh: "xhigh"; }>; input: z.ZodType>; output: z.ZodType>; maxSteps: z.ZodNumber; credentialSets: z.ZodOptional; type: z.ZodLiteral<"credentialSet">; id: z.ZodString; name: z.ZodString; description: z.ZodOptional; auth: z.ZodType>; credentialType: z.ZodEnum<{ oauth: "oauth"; manual: "manual"; }>; exposure: z.ZodOptional>; proxy: z.ZodOptional>; hostPatterns: z.ZodOptional>; injection: z.ZodOptional; basicAuth: z.ZodOptional; queryParams: z.ZodOptional; body: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; needsRawSecret: z.ZodOptional; }, z.core.$strip>>>; tools: z.ZodArray; sourceKind: z.ZodEnum<{ operation: "operation"; workflow: "workflow"; }>; authoredOperationId: z.ZodOptional; authoredWorkflowId: z.ZodOptional; integrationId: z.ZodOptional; largeResultMode: z.ZodOptional>; midSessionSnapshot: z.ZodOptional; credentialSets: z.ZodOptional>>; }, z.core.$strip>>; skills: z.ZodOptional>>; enableMemory: z.ZodDefault; enableDatabase: z.ZodDefault; mcpServers: z.ZodArray; type: z.ZodLiteral<"mcpServer">; id: z.ZodString; name: z.ZodString; description: z.ZodOptional; transport: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"stdio">; command: z.ZodString; args: z.ZodOptional>; env: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"http">; url: z.ZodString; headers: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"sse">; url: z.ZodString; headers: z.ZodOptional>; }, z.core.$strip>], "type">; credentialSets: z.ZodArray; type: z.ZodLiteral<"credentialSet">; id: z.ZodString; name: z.ZodString; description: z.ZodOptional; auth: z.ZodType>; credentialType: z.ZodEnum<{ oauth: "oauth"; manual: "manual"; }>; exposure: z.ZodOptional>; proxy: z.ZodOptional>; hostPatterns: z.ZodOptional>; injection: z.ZodOptional; basicAuth: z.ZodOptional; queryParams: z.ZodOptional; body: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; needsRawSecret: z.ZodOptional; }, z.core.$strip>>; credentialInjection: z.ZodOptional>>; headers: z.ZodOptional>>; }, z.core.$strip>>; }, z.core.$strip>>; sandbox: z.ZodOptional; type: z.ZodLiteral<"sandbox">; id: z.ZodString; name: z.ZodString; description: z.ZodOptional; workdir: z.ZodOptional; runCommands: z.ZodArray; setupCommands: z.ZodArray; credentialSets: z.ZodArray; type: z.ZodLiteral<"credentialSet">; id: z.ZodString; name: z.ZodString; description: z.ZodOptional; auth: z.ZodType>; credentialType: z.ZodEnum<{ oauth: "oauth"; manual: "manual"; }>; exposure: z.ZodOptional>; proxy: z.ZodOptional>; hostPatterns: z.ZodOptional>; injection: z.ZodOptional; basicAuth: z.ZodOptional; queryParams: z.ZodOptional; body: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; needsRawSecret: z.ZodOptional; }, z.core.$strip>>; env: z.ZodOptional; value: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"credential">; credentialSetId: z.ZodString; key: z.ZodString; }, z.core.$strip>], "kind">>>; fileSources: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>; messaging: z.ZodOptional; type: z.ZodLiteral<"messaging-gateway">; id: z.ZodString; name: z.ZodString; description: z.ZodOptional; provider: z.ZodString; mode: z.ZodEnum<{ custom: "custom"; official: "official"; }>; credentialSet: z.ZodObject<{ manifestVersion: z.ZodLiteral<1>; type: z.ZodLiteral<"credentialSet">; id: z.ZodString; name: z.ZodString; description: z.ZodOptional; auth: z.ZodType>; credentialType: z.ZodEnum<{ oauth: "oauth"; manual: "manual"; }>; exposure: z.ZodOptional>; proxy: z.ZodOptional>; hostPatterns: z.ZodOptional>; injection: z.ZodOptional; basicAuth: z.ZodOptional; queryParams: z.ZodOptional; body: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; needsRawSecret: z.ZodOptional; }, z.core.$strip>; credentialScope: z.ZodOptional>; appRef: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; type AgentManifest = z.infer; //#endregion //#region src/internal/workflow-step-context-overrides.d.ts interface WorkflowStepContextOverrides { readonly attempt?: number; readonly credentials?: Record>; readonly maxAttempts?: number; readonly stepId?: string; } //#endregion //#region src/artifacts/flow-graph-schema.d.ts declare const FlowGraphSchema: z.ZodObject<{ nodes: z.ZodArray; label: z.ZodString; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; data: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"entry">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"call">; callKind: z.ZodEnum<{ agent: "agent"; "workflow-step": "workflow-step"; tool: "tool"; hook: "hook"; "child-workflow": "child-workflow"; "function-call": "function-call"; "method-call": "method-call"; "dynamic-call": "dynamic-call"; "parallel-call": "parallel-call"; "process-exit": "process-exit"; iife: "iife"; expression: "expression"; }>; stepName: z.ZodString; callsiteFingerprint: z.ZodOptional; exportName: z.ZodOptional; stepId: z.ZodOptional; awaited: z.ZodOptional; dynamic: z.ZodOptional; recursive: z.ZodOptional; importSource: z.ZodOptional; moduleSpecifier: z.ZodOptional; importName: z.ZodOptional; localName: z.ZodOptional; resolvedPath: z.ZodOptional; }, z.core.$strip>>; outputBinding: z.ZodOptional; description: z.ZodOptional; inputSchema: z.ZodOptional>; outputSchema: z.ZodOptional>; source: z.ZodOptional; line: z.ZodNumber; column: z.ZodNumber; position: z.ZodOptional; endLine: z.ZodNumber; endColumn: z.ZodNumber; endPosition: z.ZodOptional; synthetic: z.ZodOptional; }, z.core.$strip>>; astKind: z.ZodOptional; scopeOverride: z.ZodOptional>; credentialSets: z.ZodOptional>; alias: z.ZodOptional; credentialRef: z.ZodOptional; id: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"name">; name: z.ZodString; }, z.core.$strip>], "type">>; credentialKeys: z.ZodArray; optionalCredentialKeys: z.ZodOptional>; storedCredentialKeys: z.ZodOptional>; optionalStoredCredentialKeys: z.ZodOptional>; proxy: z.ZodOptional>; hostPatterns: z.ZodOptional>; injection: z.ZodOptional; basicAuth: z.ZodOptional; queryParams: z.ZodOptional; body: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; needsRawSecret: z.ZodOptional; needsDynamicResolution: z.ZodOptional; dynamicResolutionCacheMs: z.ZodOptional; onCredentialRevoked: z.ZodOptional>; schemaFingerprint: z.ZodOptional; }, z.core.$strip>>>; requiredOAuthScopes: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"code-block">; statements: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"decision">; decisionKind: z.ZodOptional>; source: z.ZodOptional; line: z.ZodNumber; column: z.ZodNumber; position: z.ZodOptional; endLine: z.ZodNumber; endColumn: z.ZodNumber; endPosition: z.ZodOptional; synthetic: z.ZodOptional; }, z.core.$strip>>; astKind: z.ZodOptional; conditionText: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"merge">; source: z.ZodOptional; line: z.ZodNumber; column: z.ZodNumber; position: z.ZodOptional; endLine: z.ZodNumber; endColumn: z.ZodNumber; endPosition: z.ZodOptional; synthetic: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"fork">; parallelKind: z.ZodOptional>; preStatements: z.ZodOptional>>; source: z.ZodOptional; line: z.ZodNumber; column: z.ZodNumber; position: z.ZodOptional; endLine: z.ZodNumber; endColumn: z.ZodNumber; endPosition: z.ZodOptional; synthetic: z.ZodOptional; }, z.core.$strip>>; astKind: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"join">; outputBinding: z.ZodOptional; source: z.ZodOptional; line: z.ZodNumber; column: z.ZodNumber; position: z.ZodOptional; endLine: z.ZodNumber; endColumn: z.ZodNumber; endPosition: z.ZodOptional; synthetic: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"parallel-map">; parallelKind: z.ZodOptional>; iterationExpression: z.ZodOptional; stepNames: z.ZodOptional>; outputBinding: z.ZodOptional; preStatements: z.ZodOptional>>; source: z.ZodOptional; line: z.ZodNumber; column: z.ZodNumber; position: z.ZodOptional; endLine: z.ZodNumber; endColumn: z.ZodNumber; endPosition: z.ZodOptional; synthetic: z.ZodOptional; }, z.core.$strip>>; astKind: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"loop">; loopKind: z.ZodOptional>; source: z.ZodOptional; line: z.ZodNumber; column: z.ZodNumber; position: z.ZodOptional; endLine: z.ZodNumber; endColumn: z.ZodNumber; endPosition: z.ZodOptional; synthetic: z.ZodOptional; }, z.core.$strip>>; astKind: z.ZodOptional; conditionText: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"exit">; exitKind: z.ZodEnum<{ return: "return"; throw: "throw"; }>; sourceText: z.ZodOptional; source: z.ZodOptional; line: z.ZodNumber; column: z.ZodNumber; position: z.ZodOptional; endLine: z.ZodNumber; endColumn: z.ZodNumber; endPosition: z.ZodOptional; synthetic: z.ZodOptional; }, z.core.$strip>>; astKind: z.ZodOptional; }, z.core.$strip>], "kind">; }, z.core.$strip>>; edges: z.ZodArray; label: z.ZodOptional; data: z.ZodOptional>; }, z.core.$catchall>>; }, z.core.$strip>>; entryPoint: z.ZodString; exitPoints: z.ZodArray; generatedAt: z.ZodISODateTime; diagnostics: z.ZodArray; }, z.core.$strip>; type FlowGraph = z.infer; //#endregion //#region src/flow-graph/types.d.ts /** * A .run() call site found by the AST parser. * Represents a potential step, agent, or child workflow call before static resolution. */ interface ASTCandidate { /** The identifier before .run() — e.g. "fetchUser" from fetchUser.run(...) */ readonly calleeName: string; /** Variable name the result is assigned to, if any */ readonly outputBinding: string | undefined; /** Whether the call is awaited */ readonly awaited: boolean; /** Sequential index in AST source order */ readonly sourceOrderIndex: number; /** SWC span for source location mapping */ readonly span: { start: number; end: number; }; } //#endregion //#region src/flow-graph/matching.d.ts interface StaticImportSource { kind: 'local' | 'module-import' | 'namespace-import' | 'dynamic'; moduleSpecifier?: string; importName?: string; localName?: string; resolvedPath?: string; } interface StaticCandidateResolution { callKind: 'workflow-step' | 'agent' | 'child-workflow'; displayName: string; exportName?: string; importSource?: StaticImportSource; description?: string; inputSchema?: Record; outputSchema?: Record; credentialSets?: ResolvedCredentialSet[]; requiredOAuthScopes?: readonly string[]; nestedRunSource?: string; manifest?: { type?: string; name?: string; description?: string; input?: unknown; output?: unknown; workflowSchemas?: { input?: unknown; output?: unknown; }; requiredOAuthScopes?: readonly string[]; credentialSets?: Array<{ id: string; auth?: { properties?: Record; }; stored?: { properties?: Record; }; proxy?: unknown; needsRawSecret?: boolean; onCredentialRevoked?: 'fail' | 'retry-once'; connections?: readonly Record[]; }>; }; } //#endregion //#region src/flow-graph/graph-builder.d.ts interface GenerateFlowGraphOptions { readonly resolveCandidate?: (candidate: ASTCandidate) => StaticCandidateResolution | undefined; } declare function generateFlowGraph(workflow: Workflow, options?: GenerateFlowGraphOptions): Promise; //#endregion //#region src/workflow/Workflow.d.ts declare class Workflow extends Primitive { #private; readonly kind: "workflow"; readonly author?: string; readonly description?: string; readonly id: string; readonly input: TInputSchema; readonly name: string; readonly output: TOutputSchema; readonly tags: readonly string[]; readonly version?: string; readonly timeout?: Duration; readonly largeResultMode?: 'reject' | 'ref'; readonly midSessionSnapshot: boolean; readonly retries?: RetryConfig; readonly triggers: readonly TriggerEntry[]; readonly workflowGlobals?: TWorkflowGlobalsSchema; constructor(config: WorkflowConfig); withTimeout(duration: Duration): Workflow; retry(policy: RetryConfig): Workflow; run(input: z.input, runtimeOrContextOrOptions?: (WorkflowRunContext> & WorkflowRunOptions) | (WorkflowRuntime> & WorkflowRunOptions) | WorkflowRunOptions): Promise>; toManifest(): WorkflowManifest; /** * Resolves a trigger payload into workflow input using the bound transform. * Looks up the trigger by its authored id (the `id` field passed to * `xxxTrigger({ id: ... })`). * * For bare triggers, payload passes through input.parse(). * For bound triggers with transform, runs transform then input.parse(). */ resolveTriggerInput(authoredTriggerId: string, payload: unknown, ctx?: unknown): Promise>; /** * Build a static flow graph from this workflow's `run` source. * * For CLI/build metadata loading only. Deployed `workflow.js` bundles do not * include the flow-graph module; use prebuilt `flow.json` at runtime. */ toFlowGraph(options?: GenerateFlowGraphOptions): Promise; getRunFunctionSource(): string; } //#endregion //#region src/workflow/schemas.d.ts declare const WorkflowManifestSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"1.0.0">; id: z.ZodString; name: z.ZodString; description: z.ZodOptional; tags: z.ZodOptional>; exportName: z.ZodString; workflowSchemas: z.ZodObject<{ input: z.ZodNullable>; output: z.ZodNullable>; }, z.core.$strip>; workflowGlobals: z.ZodOptional>; timeout: z.ZodOptional>>; triggers: z.ZodOptional; hasTransform: z.ZodBoolean; narrowedFrom: z.ZodOptional; lineage: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; type WorkflowManifest = z.infer; declare const workflowConfigSchema: z.ZodObject<{ author: z.ZodOptional; description: z.ZodOptional; id: z.ZodString; input: z.ZodCustom; name: z.ZodString; output: z.ZodCustom; timeout: z.ZodOptional>>; largeResultMode: z.ZodOptional>; midSessionSnapshot: z.ZodOptional; retries: z.ZodOptional>; exponential: z.ZodOptional; multiplier: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; tags: z.ZodOptional>; version: z.ZodOptional; workflowGlobals: z.ZodOptional>; run: z.ZodFunction; triggers: z.ZodOptional>; }, z.core.$strip>; //#endregion //#region src/workflow/types.d.ts /** Rich hook interface for workflow suspension points. Canonical source of truth for hook shape. */ interface Hook extends PromiseLike { readonly token: Promise; readonly resumeUrl: Promise; readonly cancelUrl: Promise; readonly approvalPageUrl: Promise; } interface WaitOptions { intent?: 'rate-limit' | 'data-settlement' | 'temporal-window' | 'inline-pacing'; reason?: string; } interface CreateHookOptions { intent?: 'human-decision' | 'user-input' | 'external-system' | 'multi-actor'; prompt?: string; responseSchema?: unknown; requiredActors?: readonly string[]; reason?: string; token?: string; requiredApprovals?: number; } type WorkflowRunContext = Readonly<{ createHook: (name: string, options?: CreateHookOptions) => Hook; wait: (duration: string, options?: WaitOptions) => Promise; hasCredentialSet: (id: string) => boolean; workflowGlobals: TWorkflowGlobals; workflowId: string; }>; type AnyWorkflow = Workflow; interface WorkflowRunOptions { readonly timeout?: Duration; } interface WorkflowRuntime { readonly context: WorkflowRunContext; readonly stepContext?: WorkflowStepContextOverrides; readonly handleStep?: (operation: AnyOperation, input: unknown) => Promise; readonly handleChildWorkflow?: (workflow: AnyWorkflow, input: unknown) => Promise; readonly handleAgent?: (agent: AnyAgent, input: unknown) => Promise; } type WorkflowRun = (input: InferSchema, ctx: WorkflowRunContext>) => Promise>; interface WorkflowBaseConfig { readonly author?: string; readonly description?: string; readonly id: string; readonly input: TInputSchema; readonly name: string; readonly output: TOutputSchema; readonly tags?: readonly string[]; readonly timeout?: Duration; readonly largeResultMode?: 'reject' | 'ref'; readonly midSessionSnapshot?: boolean; readonly retries?: RetryConfig; /** Triggers that start this workflow. Bare triggers pass payload through as input. Bound triggers (from calling trigger with { transform, filter }) map payload to input. */ readonly triggers?: readonly ValidTriggerEntry>[]; readonly version?: string; readonly workflowGlobals?: TWorkflowGlobalsSchema; } interface WorkflowConfig extends WorkflowBaseConfig { readonly run: WorkflowRun; } type WorkflowInput = TWorkflow extends Workflow ? InputSchema : never; type WorkflowOutput = TWorkflow extends Workflow ? InferSchema : never; //#endregion //#region src/agent/types.d.ts interface HookResult { allow: boolean; replacement?: unknown; } interface StepInfo { stepNumber: number; type: 'tool_call' | 'text' | 'thinking'; toolName?: string; content?: string; } interface AgentHooks { onToolStart?: (tool: string, input: unknown) => Promise; onToolEnd?: (tool: string, result: unknown) => Promise; onStep?: (step: StepInfo) => Promise; } type AgentEventType = 'tool_call' | 'tool_result' | 'text' | 'thinking' | 'user_message' | 'step' | 'error' | 'retry_start' | 'retry_end' | 'done'; interface AgentEvent { type: AgentEventType; eventId?: string; timestamp?: string; messageId?: string; toolCallId?: string; tool?: string; input?: unknown; output?: unknown; content?: string; stepNumber?: number; error?: Error; } interface AgentMessage { role: 'user' | 'assistant' | 'tool'; content: string; toolCallId?: string; toolName?: string; } interface AgentSession { id: string; agentId: string; messages: AgentMessage[]; createdAt: Date; updatedAt: Date; } interface AgentResult { output: unknown; session: AgentSession; steps: number; toolCalls: Array<{ tool: string; input: unknown; output: unknown; }>; } interface AgentEventSink { onEvent?: (event: { eventType: string; eventData: Record; stepNumber?: number; timestamp: string; }) => void | Promise; onFinalize?: (result: { events: Array<{ eventType: string; eventData: Record; stepNumber?: number; timestamp: string; }>; totalSteps: number; totalToolCalls: number; durationMs: number; }) => void | Promise; } interface AgentRunOptions { sandbox?: { id: string; close(): Promise; [key: string]: unknown; }; credentialProvider?: (credentialSetId: string, keys: string[], context: Record) => Promise>; credentials?: Record; session?: AgentSession; abortSignal?: AbortSignal; hooks?: AgentHooks; eventSink?: AgentEventSink; } declare const AGENT_RUNTIME_KIND_DECLARATIVE = "declarative"; declare const AGENT_RUNTIME_KIND_RUNNABLE = "runnable"; type AgentRuntimeKind = typeof AGENT_RUNTIME_KIND_DECLARATIVE | typeof AGENT_RUNTIME_KIND_RUNNABLE; type AgentThinkingLevel = 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'; interface WorkflowSafeAgentReference { kind: 'agent'; authoredAgentId: string; displayName: string; runtimeKind: AgentRuntimeKind; inputSchema?: JsonObject; outputSchema?: JsonObject; authoredExport?: { exportName?: string; filePath?: string; }; metadata?: JsonObject; } type AnyAgentToolEntry = AnyOperation | AnyWorkflow; interface AgentConfig { readonly id: string; readonly name: string; readonly description?: string; readonly systemPrompt: string; readonly model: string; readonly thinkingLevel?: AgentThinkingLevel; readonly input?: TInputSchema; readonly output?: TOutputSchema; readonly tools?: readonly AnyAgentToolEntry[]; readonly mcpServers?: readonly AnyMcpServer[]; readonly sandbox?: AnySandbox; readonly skills?: readonly SkillSource[]; readonly enableMemory?: boolean; readonly enableDatabase?: boolean; readonly maxSteps?: number; readonly messaging?: readonly AnyMessagingGateway[]; readonly hooks?: AgentHooks; readonly run?: (input: InferSchema, options?: AgentRunOptions) => Promise; readonly stream?: (input: InferSchema, options?: AgentRunOptions) => AsyncIterable; } type AnyAgent = Agent; //#endregion //#region src/agent/Agent.d.ts declare class Agent extends Primitive { #private; readonly kind: "agent"; readonly id: string; readonly name: string; readonly description?: string; readonly systemPrompt: string; readonly model: string; readonly thinkingLevel: string; readonly input: TInputSchema; readonly output: TOutputSchema; readonly allCredentialSets: readonly AnyCredentialSet[]; readonly tools: readonly AnyAgentToolEntry[]; readonly mcpServers: readonly AnyMcpServer[]; readonly sandbox?: AnySandbox; readonly messaging: readonly AnyMessagingGateway[]; readonly skills: readonly SkillSource[]; readonly enableMemory: boolean; readonly enableDatabase: boolean; readonly maxSteps: number; readonly hooks?: AgentHooks; readonly runtimeKind: AgentRuntimeKind; readonly workflowSafeReference: WorkflowSafeAgentReference; constructor(config: AgentConfig); run(input: InferSchema, options?: AgentRunOptions): Promise; stream(input: InferSchema, options?: AgentRunOptions): AsyncIterable; configure(overrides: { name?: string; description?: string; maxSteps?: number; hooks?: AgentHooks; }): Agent; getCredentialRequirements(): { credentialSetId: string; credentialType: "oauth" | "manual"; credentialKeys: string[]; optionalCredentialKeys?: string[] | undefined; storedCredentialKeys?: string[] | undefined; optionalStoredCredentialKeys?: string[] | undefined; schemaFingerprint?: string | undefined; needsDynamicResolution?: boolean | undefined; dynamicResolutionCacheMs?: number | undefined; onCredentialRevoked?: "fail" | "retry-once" | undefined; proxy?: { hosts?: string[] | undefined; hostPatterns?: string[] | undefined; injection?: { headers?: boolean | undefined; basicAuth?: boolean | undefined; queryParams?: boolean | undefined; body?: boolean | undefined; } | undefined; } | undefined; needsRawSecret?: boolean | undefined; requiredOAuthScopes?: string[] | undefined; }[]; toManifest(): AgentManifest; } //#endregion export { AgentManifestSchema as C, AgentManifest as S, WorkflowManifestSchema as _, AnyAgentToolEntry as a, GenerateFlowGraphOptions as b, Hook as c, WorkflowOutput as d, WorkflowRun as f, WorkflowManifest as g, WorkflowRuntime as h, AnyAgent as i, WorkflowConfig as l, WorkflowRunOptions as m, AgentConfig as n, WorkflowSafeAgentReference as o, WorkflowRunContext as p, AgentResult as r, AnyWorkflow as s, Agent as t, WorkflowInput as u, workflowConfigSchema as v, generateFlowGraph as x, Workflow as y };