@runtypelabs/sdk 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +613 -95
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +85 -1
- package/dist/index.d.ts +85 -1
- package/dist/index.js +613 -95
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4123,6 +4123,15 @@ interface AgentExecuteRequest {
|
|
|
4123
4123
|
/** IDs of built-in tools to enable (e.g., "exa", "firecrawl", "dalle") */
|
|
4124
4124
|
toolIds?: string[];
|
|
4125
4125
|
};
|
|
4126
|
+
/** Context-management hints for long-running marathon sessions */
|
|
4127
|
+
contextManagement?: {
|
|
4128
|
+
compactStrategy?: 'auto' | 'provider_native' | 'summary_fallback';
|
|
4129
|
+
compactInstructions?: string;
|
|
4130
|
+
nativeCompaction?: {
|
|
4131
|
+
provider: 'anthropic';
|
|
4132
|
+
thresholdTokens: number;
|
|
4133
|
+
};
|
|
4134
|
+
};
|
|
4126
4135
|
}
|
|
4127
4136
|
/**
|
|
4128
4137
|
* Agent execute response (non-streaming)
|
|
@@ -4295,6 +4304,44 @@ type RunTaskResumeState = Pick<RunTaskState, 'originalMessage' | 'bootstrapConte
|
|
|
4295
4304
|
* Return `false` to stop the loop early.
|
|
4296
4305
|
*/
|
|
4297
4306
|
type RunTaskOnSession = (state: RunTaskState) => void | false | Promise<void | false>;
|
|
4307
|
+
type RunTaskContextCompactionStrategy = 'auto' | 'provider_native' | 'summary_fallback';
|
|
4308
|
+
interface RunTaskContextBudgetBreakdown {
|
|
4309
|
+
historyTokens: number;
|
|
4310
|
+
toolOutputTokens: number;
|
|
4311
|
+
currentTurnTokens: number;
|
|
4312
|
+
toolDefinitionTokens: number;
|
|
4313
|
+
summaryTokens?: number;
|
|
4314
|
+
reservedOutputTokens?: number;
|
|
4315
|
+
effectiveInputBudgetTokens?: number;
|
|
4316
|
+
estimatedInputTokens: number;
|
|
4317
|
+
}
|
|
4318
|
+
interface RunTaskContextCompactionEvent {
|
|
4319
|
+
phase: 'start' | 'complete';
|
|
4320
|
+
mode: 'auto' | 'forced';
|
|
4321
|
+
strategy: Exclude<RunTaskContextCompactionStrategy, 'auto'>;
|
|
4322
|
+
sessionIndex: number;
|
|
4323
|
+
model?: string;
|
|
4324
|
+
estimatedTokens?: number;
|
|
4325
|
+
thresholdTokens?: number;
|
|
4326
|
+
contextLimitTokens?: number;
|
|
4327
|
+
effectiveInputBudgetTokens?: number;
|
|
4328
|
+
reservedOutputTokens?: number;
|
|
4329
|
+
beforeTokens?: number;
|
|
4330
|
+
afterTokens?: number;
|
|
4331
|
+
breakdown?: RunTaskContextBudgetBreakdown;
|
|
4332
|
+
}
|
|
4333
|
+
type RunTaskOnContextCompaction = (event: RunTaskContextCompactionEvent) => void | Promise<void>;
|
|
4334
|
+
interface RunTaskContextNoticeEvent {
|
|
4335
|
+
kind: 'provider_native_compaction' | 'tool_definitions_warning';
|
|
4336
|
+
sessionIndex: number;
|
|
4337
|
+
model?: string;
|
|
4338
|
+
message: string;
|
|
4339
|
+
estimatedTokens?: number;
|
|
4340
|
+
contextLimitTokens?: number;
|
|
4341
|
+
effectiveInputBudgetTokens?: number;
|
|
4342
|
+
reservedOutputTokens?: number;
|
|
4343
|
+
}
|
|
4344
|
+
type RunTaskOnContextNotice = (event: RunTaskContextNoticeEvent) => void | Promise<void>;
|
|
4298
4345
|
/**
|
|
4299
4346
|
* Options for `agents.runTask()`
|
|
4300
4347
|
*/
|
|
@@ -4334,6 +4381,18 @@ interface RunTaskOptions {
|
|
|
4334
4381
|
continuationMessage?: string;
|
|
4335
4382
|
/** Use compact summary instead of full message history for continuation */
|
|
4336
4383
|
compact?: boolean;
|
|
4384
|
+
/** Estimated input token threshold that triggers compact-summary mode for long histories */
|
|
4385
|
+
autoCompactTokenThreshold?: number;
|
|
4386
|
+
/** Effective context window for the active model, used for compaction UX/status */
|
|
4387
|
+
contextLimitTokens?: number;
|
|
4388
|
+
/** Which compaction strategy to prefer. `auto` defaults to provider-native when supported. */
|
|
4389
|
+
compactStrategy?: RunTaskContextCompactionStrategy;
|
|
4390
|
+
/** Optional instructions to preserve specific context when generating compact summaries. */
|
|
4391
|
+
compactInstructions?: string;
|
|
4392
|
+
/** Called when marathon history compaction starts or completes */
|
|
4393
|
+
onContextCompaction?: RunTaskOnContextCompaction;
|
|
4394
|
+
/** Called when marathon context-management warnings or notices should be surfaced */
|
|
4395
|
+
onContextNotice?: RunTaskOnContextNotice;
|
|
4337
4396
|
/** Saved workflow state to seed a resumed or restarted marathon run */
|
|
4338
4397
|
resumeState?: RunTaskResumeState;
|
|
4339
4398
|
/** How tool results are stored in message history for continuation.
|
|
@@ -4385,6 +4444,8 @@ interface Agent {
|
|
|
4385
4444
|
*/
|
|
4386
4445
|
declare class AgentsEndpoint {
|
|
4387
4446
|
private client;
|
|
4447
|
+
private static readonly AUTO_COMPACT_SUMMARY_PREFIX;
|
|
4448
|
+
private static readonly FORCED_COMPACT_SUMMARY_PREFIX;
|
|
4388
4449
|
constructor(client: ApiClient);
|
|
4389
4450
|
/**
|
|
4390
4451
|
* List all agents for the authenticated user
|
|
@@ -4596,6 +4657,28 @@ declare class AgentsEndpoint {
|
|
|
4596
4657
|
* Mirrors the API's detectAutoComplete() for non-loop agents that return 'end_turn'.
|
|
4597
4658
|
*/
|
|
4598
4659
|
private detectTaskCompletion;
|
|
4660
|
+
private resolveReservedOutputTokens;
|
|
4661
|
+
private resolveEffectiveInputBudgetTokens;
|
|
4662
|
+
private resolveCompactStrategy;
|
|
4663
|
+
private estimateTextTokens;
|
|
4664
|
+
private estimateUnknownTokens;
|
|
4665
|
+
private estimateMessageContentTokens;
|
|
4666
|
+
private estimateToolCallTokens;
|
|
4667
|
+
private estimateToolResultTokens;
|
|
4668
|
+
private estimateMessageTokens;
|
|
4669
|
+
private estimateConversationTokens;
|
|
4670
|
+
private estimateConversationBreakdown;
|
|
4671
|
+
private estimateToolDefinitionTokens;
|
|
4672
|
+
private loadBuiltinToolSchemas;
|
|
4673
|
+
private buildDefaultCompactInstructions;
|
|
4674
|
+
private resolveCompactInstructions;
|
|
4675
|
+
private extractArtifactReferences;
|
|
4676
|
+
private buildContextBudgetBreakdown;
|
|
4677
|
+
private emitContextCompactionEvent;
|
|
4678
|
+
private emitContextNotice;
|
|
4679
|
+
private buildCompactHistoryMessagesWithLifecycle;
|
|
4680
|
+
private buildCompactHistoryMessages;
|
|
4681
|
+
private isCompactHistoryMessageSet;
|
|
4599
4682
|
/**
|
|
4600
4683
|
* Generate a compact summary of prior work for continuation context.
|
|
4601
4684
|
* Used when compact mode is enabled to keep token usage low.
|
|
@@ -4606,6 +4689,7 @@ declare class AgentsEndpoint {
|
|
|
4606
4689
|
* Optionally accepts continuation context for marathon resume scenarios.
|
|
4607
4690
|
*/
|
|
4608
4691
|
private buildSessionMessages;
|
|
4692
|
+
private prepareSessionContext;
|
|
4609
4693
|
/**
|
|
4610
4694
|
* Upsert a record to sync long-task progress to the dashboard.
|
|
4611
4695
|
* Creates the record on first call, updates it on subsequent calls.
|
|
@@ -5192,4 +5276,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
5192
5276
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
5193
5277
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
5194
5278
|
|
|
5195
|
-
export { type Agent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionLoopSnapshotSlice, type Message$1 as Message, type MessageContent, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContinuation, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, type SearchStepConfig$1 as SearchStepConfig, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type StepChunkEvent, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type TextContentPart, type Tool, type ToolConfig, type ToolExecution, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateToolRequest, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions$2 as UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
|
|
5279
|
+
export { type Agent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionLoopSnapshotSlice, type Message$1 as Message, type MessageContent, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, type SearchStepConfig$1 as SearchStepConfig, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type StepChunkEvent, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type TextContentPart, type Tool, type ToolConfig, type ToolExecution, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateToolRequest, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions$2 as UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
|
package/dist/index.d.ts
CHANGED
|
@@ -4123,6 +4123,15 @@ interface AgentExecuteRequest {
|
|
|
4123
4123
|
/** IDs of built-in tools to enable (e.g., "exa", "firecrawl", "dalle") */
|
|
4124
4124
|
toolIds?: string[];
|
|
4125
4125
|
};
|
|
4126
|
+
/** Context-management hints for long-running marathon sessions */
|
|
4127
|
+
contextManagement?: {
|
|
4128
|
+
compactStrategy?: 'auto' | 'provider_native' | 'summary_fallback';
|
|
4129
|
+
compactInstructions?: string;
|
|
4130
|
+
nativeCompaction?: {
|
|
4131
|
+
provider: 'anthropic';
|
|
4132
|
+
thresholdTokens: number;
|
|
4133
|
+
};
|
|
4134
|
+
};
|
|
4126
4135
|
}
|
|
4127
4136
|
/**
|
|
4128
4137
|
* Agent execute response (non-streaming)
|
|
@@ -4295,6 +4304,44 @@ type RunTaskResumeState = Pick<RunTaskState, 'originalMessage' | 'bootstrapConte
|
|
|
4295
4304
|
* Return `false` to stop the loop early.
|
|
4296
4305
|
*/
|
|
4297
4306
|
type RunTaskOnSession = (state: RunTaskState) => void | false | Promise<void | false>;
|
|
4307
|
+
type RunTaskContextCompactionStrategy = 'auto' | 'provider_native' | 'summary_fallback';
|
|
4308
|
+
interface RunTaskContextBudgetBreakdown {
|
|
4309
|
+
historyTokens: number;
|
|
4310
|
+
toolOutputTokens: number;
|
|
4311
|
+
currentTurnTokens: number;
|
|
4312
|
+
toolDefinitionTokens: number;
|
|
4313
|
+
summaryTokens?: number;
|
|
4314
|
+
reservedOutputTokens?: number;
|
|
4315
|
+
effectiveInputBudgetTokens?: number;
|
|
4316
|
+
estimatedInputTokens: number;
|
|
4317
|
+
}
|
|
4318
|
+
interface RunTaskContextCompactionEvent {
|
|
4319
|
+
phase: 'start' | 'complete';
|
|
4320
|
+
mode: 'auto' | 'forced';
|
|
4321
|
+
strategy: Exclude<RunTaskContextCompactionStrategy, 'auto'>;
|
|
4322
|
+
sessionIndex: number;
|
|
4323
|
+
model?: string;
|
|
4324
|
+
estimatedTokens?: number;
|
|
4325
|
+
thresholdTokens?: number;
|
|
4326
|
+
contextLimitTokens?: number;
|
|
4327
|
+
effectiveInputBudgetTokens?: number;
|
|
4328
|
+
reservedOutputTokens?: number;
|
|
4329
|
+
beforeTokens?: number;
|
|
4330
|
+
afterTokens?: number;
|
|
4331
|
+
breakdown?: RunTaskContextBudgetBreakdown;
|
|
4332
|
+
}
|
|
4333
|
+
type RunTaskOnContextCompaction = (event: RunTaskContextCompactionEvent) => void | Promise<void>;
|
|
4334
|
+
interface RunTaskContextNoticeEvent {
|
|
4335
|
+
kind: 'provider_native_compaction' | 'tool_definitions_warning';
|
|
4336
|
+
sessionIndex: number;
|
|
4337
|
+
model?: string;
|
|
4338
|
+
message: string;
|
|
4339
|
+
estimatedTokens?: number;
|
|
4340
|
+
contextLimitTokens?: number;
|
|
4341
|
+
effectiveInputBudgetTokens?: number;
|
|
4342
|
+
reservedOutputTokens?: number;
|
|
4343
|
+
}
|
|
4344
|
+
type RunTaskOnContextNotice = (event: RunTaskContextNoticeEvent) => void | Promise<void>;
|
|
4298
4345
|
/**
|
|
4299
4346
|
* Options for `agents.runTask()`
|
|
4300
4347
|
*/
|
|
@@ -4334,6 +4381,18 @@ interface RunTaskOptions {
|
|
|
4334
4381
|
continuationMessage?: string;
|
|
4335
4382
|
/** Use compact summary instead of full message history for continuation */
|
|
4336
4383
|
compact?: boolean;
|
|
4384
|
+
/** Estimated input token threshold that triggers compact-summary mode for long histories */
|
|
4385
|
+
autoCompactTokenThreshold?: number;
|
|
4386
|
+
/** Effective context window for the active model, used for compaction UX/status */
|
|
4387
|
+
contextLimitTokens?: number;
|
|
4388
|
+
/** Which compaction strategy to prefer. `auto` defaults to provider-native when supported. */
|
|
4389
|
+
compactStrategy?: RunTaskContextCompactionStrategy;
|
|
4390
|
+
/** Optional instructions to preserve specific context when generating compact summaries. */
|
|
4391
|
+
compactInstructions?: string;
|
|
4392
|
+
/** Called when marathon history compaction starts or completes */
|
|
4393
|
+
onContextCompaction?: RunTaskOnContextCompaction;
|
|
4394
|
+
/** Called when marathon context-management warnings or notices should be surfaced */
|
|
4395
|
+
onContextNotice?: RunTaskOnContextNotice;
|
|
4337
4396
|
/** Saved workflow state to seed a resumed or restarted marathon run */
|
|
4338
4397
|
resumeState?: RunTaskResumeState;
|
|
4339
4398
|
/** How tool results are stored in message history for continuation.
|
|
@@ -4385,6 +4444,8 @@ interface Agent {
|
|
|
4385
4444
|
*/
|
|
4386
4445
|
declare class AgentsEndpoint {
|
|
4387
4446
|
private client;
|
|
4447
|
+
private static readonly AUTO_COMPACT_SUMMARY_PREFIX;
|
|
4448
|
+
private static readonly FORCED_COMPACT_SUMMARY_PREFIX;
|
|
4388
4449
|
constructor(client: ApiClient);
|
|
4389
4450
|
/**
|
|
4390
4451
|
* List all agents for the authenticated user
|
|
@@ -4596,6 +4657,28 @@ declare class AgentsEndpoint {
|
|
|
4596
4657
|
* Mirrors the API's detectAutoComplete() for non-loop agents that return 'end_turn'.
|
|
4597
4658
|
*/
|
|
4598
4659
|
private detectTaskCompletion;
|
|
4660
|
+
private resolveReservedOutputTokens;
|
|
4661
|
+
private resolveEffectiveInputBudgetTokens;
|
|
4662
|
+
private resolveCompactStrategy;
|
|
4663
|
+
private estimateTextTokens;
|
|
4664
|
+
private estimateUnknownTokens;
|
|
4665
|
+
private estimateMessageContentTokens;
|
|
4666
|
+
private estimateToolCallTokens;
|
|
4667
|
+
private estimateToolResultTokens;
|
|
4668
|
+
private estimateMessageTokens;
|
|
4669
|
+
private estimateConversationTokens;
|
|
4670
|
+
private estimateConversationBreakdown;
|
|
4671
|
+
private estimateToolDefinitionTokens;
|
|
4672
|
+
private loadBuiltinToolSchemas;
|
|
4673
|
+
private buildDefaultCompactInstructions;
|
|
4674
|
+
private resolveCompactInstructions;
|
|
4675
|
+
private extractArtifactReferences;
|
|
4676
|
+
private buildContextBudgetBreakdown;
|
|
4677
|
+
private emitContextCompactionEvent;
|
|
4678
|
+
private emitContextNotice;
|
|
4679
|
+
private buildCompactHistoryMessagesWithLifecycle;
|
|
4680
|
+
private buildCompactHistoryMessages;
|
|
4681
|
+
private isCompactHistoryMessageSet;
|
|
4599
4682
|
/**
|
|
4600
4683
|
* Generate a compact summary of prior work for continuation context.
|
|
4601
4684
|
* Used when compact mode is enabled to keep token usage low.
|
|
@@ -4606,6 +4689,7 @@ declare class AgentsEndpoint {
|
|
|
4606
4689
|
* Optionally accepts continuation context for marathon resume scenarios.
|
|
4607
4690
|
*/
|
|
4608
4691
|
private buildSessionMessages;
|
|
4692
|
+
private prepareSessionContext;
|
|
4609
4693
|
/**
|
|
4610
4694
|
* Upsert a record to sync long-task progress to the dashboard.
|
|
4611
4695
|
* Creates the record on first call, updates it on subsequent calls.
|
|
@@ -5192,4 +5276,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
5192
5276
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
5193
5277
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
5194
5278
|
|
|
5195
|
-
export { type Agent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionLoopSnapshotSlice, type Message$1 as Message, type MessageContent, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContinuation, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, type SearchStepConfig$1 as SearchStepConfig, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type StepChunkEvent, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type TextContentPart, type Tool, type ToolConfig, type ToolExecution, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateToolRequest, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions$2 as UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
|
|
5279
|
+
export { type Agent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, AgentsEndpoint, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type CreateApiKeyRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DeploySandboxRequest, type DeploySandboxResponse, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowErrorEvent, type FlowFallback, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionLoopSnapshotSlice, type Message$1 as Message, type MessageContent, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ReasoningConfig, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, type SearchStepConfig$1 as SearchStepConfig, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type StepChunkEvent, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type TextContentPart, type Tool, type ToolConfig, type ToolExecution, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateClientTokenRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateToolRequest, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions$2 as UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
|