@runtypelabs/sdk 1.8.2 → 1.9.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 +258 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +95 -4
- package/dist/index.d.ts +95 -4
- package/dist/index.js +258 -84
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -871,6 +871,33 @@ interface FetchUrlStepConfig$1 {
|
|
|
871
871
|
streamOutput?: boolean;
|
|
872
872
|
enabled?: boolean;
|
|
873
873
|
}
|
|
874
|
+
interface CrawlStepConfig {
|
|
875
|
+
name: string;
|
|
876
|
+
url: string;
|
|
877
|
+
limit?: number;
|
|
878
|
+
depth?: number;
|
|
879
|
+
source?: string;
|
|
880
|
+
formats?: string[];
|
|
881
|
+
render?: boolean;
|
|
882
|
+
maxAge?: number;
|
|
883
|
+
modifiedSince?: string;
|
|
884
|
+
options?: Record<string, unknown>;
|
|
885
|
+
authenticate?: Record<string, unknown>;
|
|
886
|
+
cookies?: Array<Record<string, unknown>>;
|
|
887
|
+
setExtraHTTPHeaders?: Record<string, string>;
|
|
888
|
+
gotoOptions?: Record<string, unknown>;
|
|
889
|
+
waitForSelector?: string;
|
|
890
|
+
rejectResourceTypes?: string[];
|
|
891
|
+
rejectRequestPattern?: string | string[];
|
|
892
|
+
userAgent?: string;
|
|
893
|
+
jsonOptions?: Record<string, unknown>;
|
|
894
|
+
outputVariable?: string;
|
|
895
|
+
streamOutput?: boolean;
|
|
896
|
+
errorHandling?: ErrorHandlingMode | ContextErrorHandling;
|
|
897
|
+
pollIntervalMs?: number;
|
|
898
|
+
completionTimeoutMs?: number;
|
|
899
|
+
enabled?: boolean;
|
|
900
|
+
}
|
|
874
901
|
interface TransformDataStepConfig$1 {
|
|
875
902
|
name: string;
|
|
876
903
|
script: string;
|
|
@@ -1297,6 +1324,10 @@ declare class FlowBuilder {
|
|
|
1297
1324
|
* Add a prompt step
|
|
1298
1325
|
*/
|
|
1299
1326
|
prompt(config: PromptStepConfig$1): this;
|
|
1327
|
+
/**
|
|
1328
|
+
* Add a crawl step
|
|
1329
|
+
*/
|
|
1330
|
+
crawl(config: CrawlStepConfig): this;
|
|
1300
1331
|
/**
|
|
1301
1332
|
* Add a fetch URL step
|
|
1302
1333
|
*/
|
|
@@ -3853,7 +3884,7 @@ declare class ClientTokensEndpoint {
|
|
|
3853
3884
|
/**
|
|
3854
3885
|
* Agent event types for streaming
|
|
3855
3886
|
*/
|
|
3856
|
-
type AgentEventType = 'agent_start' | 'agent_iteration_start' | 'agent_turn_start' | 'agent_turn_delta' | 'agent_turn_complete' | 'agent_tool_start' | 'agent_tool_delta' | 'agent_tool_complete' | 'agent_iteration_complete' | 'agent_reflection' | 'agent_complete' | 'agent_error' | 'agent_ping' | 'agent_await';
|
|
3887
|
+
type AgentEventType = 'agent_start' | 'agent_iteration_start' | 'agent_turn_start' | 'agent_turn_delta' | 'agent_turn_complete' | 'agent_tool_start' | 'agent_tool_delta' | 'agent_tool_input_delta' | 'agent_tool_input_complete' | 'agent_tool_complete' | 'agent_iteration_complete' | 'agent_reflection' | 'agent_complete' | 'agent_error' | 'agent_ping' | 'agent_await';
|
|
3857
3888
|
/**
|
|
3858
3889
|
* Base agent event with common fields
|
|
3859
3890
|
*/
|
|
@@ -3934,7 +3965,7 @@ interface AgentToolStartEvent extends BaseAgentEvent {
|
|
|
3934
3965
|
parameters?: Record<string, unknown>;
|
|
3935
3966
|
}
|
|
3936
3967
|
/**
|
|
3937
|
-
* Agent tool delta event
|
|
3968
|
+
* Agent tool delta event (reserved for future execution progress)
|
|
3938
3969
|
*/
|
|
3939
3970
|
interface AgentToolDeltaEvent extends BaseAgentEvent {
|
|
3940
3971
|
type: 'agent_tool_delta';
|
|
@@ -3942,6 +3973,26 @@ interface AgentToolDeltaEvent extends BaseAgentEvent {
|
|
|
3942
3973
|
toolCallId: string;
|
|
3943
3974
|
delta: string;
|
|
3944
3975
|
}
|
|
3976
|
+
/**
|
|
3977
|
+
* Agent tool input delta event — streamed input fragment
|
|
3978
|
+
*/
|
|
3979
|
+
interface AgentToolInputDeltaEvent extends BaseAgentEvent {
|
|
3980
|
+
type: 'agent_tool_input_delta';
|
|
3981
|
+
iteration: number;
|
|
3982
|
+
toolCallId: string;
|
|
3983
|
+
delta: string;
|
|
3984
|
+
}
|
|
3985
|
+
/**
|
|
3986
|
+
* Agent tool input complete event — resolved parameters after streaming
|
|
3987
|
+
*/
|
|
3988
|
+
interface AgentToolInputCompleteEvent extends BaseAgentEvent {
|
|
3989
|
+
type: 'agent_tool_input_complete';
|
|
3990
|
+
iteration: number;
|
|
3991
|
+
toolCallId: string;
|
|
3992
|
+
toolName: string;
|
|
3993
|
+
parameters: Record<string, unknown>;
|
|
3994
|
+
hiddenParameterNames?: string[];
|
|
3995
|
+
}
|
|
3945
3996
|
/**
|
|
3946
3997
|
* Agent tool complete event
|
|
3947
3998
|
*/
|
|
@@ -4029,10 +4080,34 @@ interface AgentPausedEvent extends BaseAgentEvent {
|
|
|
4029
4080
|
parameters?: Record<string, unknown>;
|
|
4030
4081
|
awaitedAt: string;
|
|
4031
4082
|
}
|
|
4083
|
+
/**
|
|
4084
|
+
* Synthetic SDK event fired when client-side local tool execution begins.
|
|
4085
|
+
*/
|
|
4086
|
+
interface LocalToolExecutionStartEvent {
|
|
4087
|
+
executionId: string;
|
|
4088
|
+
toolCallId: string;
|
|
4089
|
+
toolName: string;
|
|
4090
|
+
parameters: Record<string, unknown>;
|
|
4091
|
+
startedAt: string;
|
|
4092
|
+
}
|
|
4093
|
+
/**
|
|
4094
|
+
* Synthetic SDK event fired after local tool execution finishes and the resume
|
|
4095
|
+
* request has been accepted (or a forced completion is emitted instead).
|
|
4096
|
+
*/
|
|
4097
|
+
interface LocalToolExecutionCompleteEvent {
|
|
4098
|
+
executionId: string;
|
|
4099
|
+
toolCallId: string;
|
|
4100
|
+
toolName: string;
|
|
4101
|
+
parameters: Record<string, unknown>;
|
|
4102
|
+
result: unknown;
|
|
4103
|
+
success: boolean;
|
|
4104
|
+
completedAt: string;
|
|
4105
|
+
durationMs: number;
|
|
4106
|
+
}
|
|
4032
4107
|
/**
|
|
4033
4108
|
* Union of all agent event types
|
|
4034
4109
|
*/
|
|
4035
|
-
type AgentEvent = AgentStartEvent | AgentIterationStartEvent | AgentTurnStartEvent | AgentTurnDeltaEvent | AgentTurnCompleteEvent | AgentToolStartEvent | AgentToolDeltaEvent | AgentToolCompleteEvent | AgentIterationCompleteEvent | AgentReflectionEvent | AgentCompleteEvent | AgentErrorEvent | AgentPingEvent | AgentPausedEvent;
|
|
4110
|
+
type AgentEvent = AgentStartEvent | AgentIterationStartEvent | AgentTurnStartEvent | AgentTurnDeltaEvent | AgentTurnCompleteEvent | AgentToolStartEvent | AgentToolDeltaEvent | AgentToolInputDeltaEvent | AgentToolInputCompleteEvent | AgentToolCompleteEvent | AgentIterationCompleteEvent | AgentReflectionEvent | AgentCompleteEvent | AgentErrorEvent | AgentPingEvent | AgentPausedEvent;
|
|
4036
4111
|
/**
|
|
4037
4112
|
* Parsed SSE event with event type and data
|
|
4038
4113
|
*/
|
|
@@ -4051,11 +4126,15 @@ interface AgentStreamCallbacks {
|
|
|
4051
4126
|
onTurnComplete?: (event: AgentTurnCompleteEvent) => void;
|
|
4052
4127
|
onToolStart?: (event: AgentToolStartEvent) => void;
|
|
4053
4128
|
onToolDelta?: (event: AgentToolDeltaEvent) => void;
|
|
4129
|
+
onToolInputDelta?: (event: AgentToolInputDeltaEvent) => void;
|
|
4130
|
+
onToolInputComplete?: (event: AgentToolInputCompleteEvent) => void;
|
|
4054
4131
|
onToolComplete?: (event: AgentToolCompleteEvent) => void;
|
|
4055
4132
|
onIterationComplete?: (event: AgentIterationCompleteEvent) => void;
|
|
4056
4133
|
onReflection?: (event: AgentReflectionEvent) => void;
|
|
4057
4134
|
onAgentComplete?: (event: AgentCompleteEvent) => void;
|
|
4058
4135
|
onAgentPaused?: (event: AgentPausedEvent) => void;
|
|
4136
|
+
onLocalToolExecutionStart?: (event: LocalToolExecutionStartEvent) => void;
|
|
4137
|
+
onLocalToolExecutionComplete?: (event: LocalToolExecutionCompleteEvent) => void;
|
|
4059
4138
|
onError?: (event: AgentErrorEvent) => void;
|
|
4060
4139
|
onPing?: (event: AgentPingEvent) => void;
|
|
4061
4140
|
onUnknownEvent?: (event: ParsedSSEEvent) => void;
|
|
@@ -4686,6 +4765,18 @@ declare class AgentsEndpoint {
|
|
|
4686
4765
|
* Used when compact mode is enabled to keep token usage low.
|
|
4687
4766
|
*/
|
|
4688
4767
|
private generateCompactSummary;
|
|
4768
|
+
private isAssistantToolCallMessage;
|
|
4769
|
+
private isToolResultMessage;
|
|
4770
|
+
/**
|
|
4771
|
+
* Replay only complete adjacent tool-call/result pairs so provider validation
|
|
4772
|
+
* never sees an orphaned tool result after history trimming or resume.
|
|
4773
|
+
*/
|
|
4774
|
+
private sanitizeReplayHistoryMessages;
|
|
4775
|
+
/**
|
|
4776
|
+
* Keep replay trimming on a pair boundary. If the trim cut would start on a
|
|
4777
|
+
* tool-result message, slide back to include the matching assistant tool call.
|
|
4778
|
+
*/
|
|
4779
|
+
private trimReplayHistoryMessages;
|
|
4689
4780
|
/**
|
|
4690
4781
|
* Build messages for a session, injecting progress context for continuation sessions.
|
|
4691
4782
|
* Optionally accepts continuation context for marathon resume scenarios.
|
|
@@ -5278,4 +5369,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
5278
5369
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
5279
5370
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
5280
5371
|
|
|
5281
|
-
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 };
|
|
5372
|
+
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 AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, 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 LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, 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
|
@@ -871,6 +871,33 @@ interface FetchUrlStepConfig$1 {
|
|
|
871
871
|
streamOutput?: boolean;
|
|
872
872
|
enabled?: boolean;
|
|
873
873
|
}
|
|
874
|
+
interface CrawlStepConfig {
|
|
875
|
+
name: string;
|
|
876
|
+
url: string;
|
|
877
|
+
limit?: number;
|
|
878
|
+
depth?: number;
|
|
879
|
+
source?: string;
|
|
880
|
+
formats?: string[];
|
|
881
|
+
render?: boolean;
|
|
882
|
+
maxAge?: number;
|
|
883
|
+
modifiedSince?: string;
|
|
884
|
+
options?: Record<string, unknown>;
|
|
885
|
+
authenticate?: Record<string, unknown>;
|
|
886
|
+
cookies?: Array<Record<string, unknown>>;
|
|
887
|
+
setExtraHTTPHeaders?: Record<string, string>;
|
|
888
|
+
gotoOptions?: Record<string, unknown>;
|
|
889
|
+
waitForSelector?: string;
|
|
890
|
+
rejectResourceTypes?: string[];
|
|
891
|
+
rejectRequestPattern?: string | string[];
|
|
892
|
+
userAgent?: string;
|
|
893
|
+
jsonOptions?: Record<string, unknown>;
|
|
894
|
+
outputVariable?: string;
|
|
895
|
+
streamOutput?: boolean;
|
|
896
|
+
errorHandling?: ErrorHandlingMode | ContextErrorHandling;
|
|
897
|
+
pollIntervalMs?: number;
|
|
898
|
+
completionTimeoutMs?: number;
|
|
899
|
+
enabled?: boolean;
|
|
900
|
+
}
|
|
874
901
|
interface TransformDataStepConfig$1 {
|
|
875
902
|
name: string;
|
|
876
903
|
script: string;
|
|
@@ -1297,6 +1324,10 @@ declare class FlowBuilder {
|
|
|
1297
1324
|
* Add a prompt step
|
|
1298
1325
|
*/
|
|
1299
1326
|
prompt(config: PromptStepConfig$1): this;
|
|
1327
|
+
/**
|
|
1328
|
+
* Add a crawl step
|
|
1329
|
+
*/
|
|
1330
|
+
crawl(config: CrawlStepConfig): this;
|
|
1300
1331
|
/**
|
|
1301
1332
|
* Add a fetch URL step
|
|
1302
1333
|
*/
|
|
@@ -3853,7 +3884,7 @@ declare class ClientTokensEndpoint {
|
|
|
3853
3884
|
/**
|
|
3854
3885
|
* Agent event types for streaming
|
|
3855
3886
|
*/
|
|
3856
|
-
type AgentEventType = 'agent_start' | 'agent_iteration_start' | 'agent_turn_start' | 'agent_turn_delta' | 'agent_turn_complete' | 'agent_tool_start' | 'agent_tool_delta' | 'agent_tool_complete' | 'agent_iteration_complete' | 'agent_reflection' | 'agent_complete' | 'agent_error' | 'agent_ping' | 'agent_await';
|
|
3887
|
+
type AgentEventType = 'agent_start' | 'agent_iteration_start' | 'agent_turn_start' | 'agent_turn_delta' | 'agent_turn_complete' | 'agent_tool_start' | 'agent_tool_delta' | 'agent_tool_input_delta' | 'agent_tool_input_complete' | 'agent_tool_complete' | 'agent_iteration_complete' | 'agent_reflection' | 'agent_complete' | 'agent_error' | 'agent_ping' | 'agent_await';
|
|
3857
3888
|
/**
|
|
3858
3889
|
* Base agent event with common fields
|
|
3859
3890
|
*/
|
|
@@ -3934,7 +3965,7 @@ interface AgentToolStartEvent extends BaseAgentEvent {
|
|
|
3934
3965
|
parameters?: Record<string, unknown>;
|
|
3935
3966
|
}
|
|
3936
3967
|
/**
|
|
3937
|
-
* Agent tool delta event
|
|
3968
|
+
* Agent tool delta event (reserved for future execution progress)
|
|
3938
3969
|
*/
|
|
3939
3970
|
interface AgentToolDeltaEvent extends BaseAgentEvent {
|
|
3940
3971
|
type: 'agent_tool_delta';
|
|
@@ -3942,6 +3973,26 @@ interface AgentToolDeltaEvent extends BaseAgentEvent {
|
|
|
3942
3973
|
toolCallId: string;
|
|
3943
3974
|
delta: string;
|
|
3944
3975
|
}
|
|
3976
|
+
/**
|
|
3977
|
+
* Agent tool input delta event — streamed input fragment
|
|
3978
|
+
*/
|
|
3979
|
+
interface AgentToolInputDeltaEvent extends BaseAgentEvent {
|
|
3980
|
+
type: 'agent_tool_input_delta';
|
|
3981
|
+
iteration: number;
|
|
3982
|
+
toolCallId: string;
|
|
3983
|
+
delta: string;
|
|
3984
|
+
}
|
|
3985
|
+
/**
|
|
3986
|
+
* Agent tool input complete event — resolved parameters after streaming
|
|
3987
|
+
*/
|
|
3988
|
+
interface AgentToolInputCompleteEvent extends BaseAgentEvent {
|
|
3989
|
+
type: 'agent_tool_input_complete';
|
|
3990
|
+
iteration: number;
|
|
3991
|
+
toolCallId: string;
|
|
3992
|
+
toolName: string;
|
|
3993
|
+
parameters: Record<string, unknown>;
|
|
3994
|
+
hiddenParameterNames?: string[];
|
|
3995
|
+
}
|
|
3945
3996
|
/**
|
|
3946
3997
|
* Agent tool complete event
|
|
3947
3998
|
*/
|
|
@@ -4029,10 +4080,34 @@ interface AgentPausedEvent extends BaseAgentEvent {
|
|
|
4029
4080
|
parameters?: Record<string, unknown>;
|
|
4030
4081
|
awaitedAt: string;
|
|
4031
4082
|
}
|
|
4083
|
+
/**
|
|
4084
|
+
* Synthetic SDK event fired when client-side local tool execution begins.
|
|
4085
|
+
*/
|
|
4086
|
+
interface LocalToolExecutionStartEvent {
|
|
4087
|
+
executionId: string;
|
|
4088
|
+
toolCallId: string;
|
|
4089
|
+
toolName: string;
|
|
4090
|
+
parameters: Record<string, unknown>;
|
|
4091
|
+
startedAt: string;
|
|
4092
|
+
}
|
|
4093
|
+
/**
|
|
4094
|
+
* Synthetic SDK event fired after local tool execution finishes and the resume
|
|
4095
|
+
* request has been accepted (or a forced completion is emitted instead).
|
|
4096
|
+
*/
|
|
4097
|
+
interface LocalToolExecutionCompleteEvent {
|
|
4098
|
+
executionId: string;
|
|
4099
|
+
toolCallId: string;
|
|
4100
|
+
toolName: string;
|
|
4101
|
+
parameters: Record<string, unknown>;
|
|
4102
|
+
result: unknown;
|
|
4103
|
+
success: boolean;
|
|
4104
|
+
completedAt: string;
|
|
4105
|
+
durationMs: number;
|
|
4106
|
+
}
|
|
4032
4107
|
/**
|
|
4033
4108
|
* Union of all agent event types
|
|
4034
4109
|
*/
|
|
4035
|
-
type AgentEvent = AgentStartEvent | AgentIterationStartEvent | AgentTurnStartEvent | AgentTurnDeltaEvent | AgentTurnCompleteEvent | AgentToolStartEvent | AgentToolDeltaEvent | AgentToolCompleteEvent | AgentIterationCompleteEvent | AgentReflectionEvent | AgentCompleteEvent | AgentErrorEvent | AgentPingEvent | AgentPausedEvent;
|
|
4110
|
+
type AgentEvent = AgentStartEvent | AgentIterationStartEvent | AgentTurnStartEvent | AgentTurnDeltaEvent | AgentTurnCompleteEvent | AgentToolStartEvent | AgentToolDeltaEvent | AgentToolInputDeltaEvent | AgentToolInputCompleteEvent | AgentToolCompleteEvent | AgentIterationCompleteEvent | AgentReflectionEvent | AgentCompleteEvent | AgentErrorEvent | AgentPingEvent | AgentPausedEvent;
|
|
4036
4111
|
/**
|
|
4037
4112
|
* Parsed SSE event with event type and data
|
|
4038
4113
|
*/
|
|
@@ -4051,11 +4126,15 @@ interface AgentStreamCallbacks {
|
|
|
4051
4126
|
onTurnComplete?: (event: AgentTurnCompleteEvent) => void;
|
|
4052
4127
|
onToolStart?: (event: AgentToolStartEvent) => void;
|
|
4053
4128
|
onToolDelta?: (event: AgentToolDeltaEvent) => void;
|
|
4129
|
+
onToolInputDelta?: (event: AgentToolInputDeltaEvent) => void;
|
|
4130
|
+
onToolInputComplete?: (event: AgentToolInputCompleteEvent) => void;
|
|
4054
4131
|
onToolComplete?: (event: AgentToolCompleteEvent) => void;
|
|
4055
4132
|
onIterationComplete?: (event: AgentIterationCompleteEvent) => void;
|
|
4056
4133
|
onReflection?: (event: AgentReflectionEvent) => void;
|
|
4057
4134
|
onAgentComplete?: (event: AgentCompleteEvent) => void;
|
|
4058
4135
|
onAgentPaused?: (event: AgentPausedEvent) => void;
|
|
4136
|
+
onLocalToolExecutionStart?: (event: LocalToolExecutionStartEvent) => void;
|
|
4137
|
+
onLocalToolExecutionComplete?: (event: LocalToolExecutionCompleteEvent) => void;
|
|
4059
4138
|
onError?: (event: AgentErrorEvent) => void;
|
|
4060
4139
|
onPing?: (event: AgentPingEvent) => void;
|
|
4061
4140
|
onUnknownEvent?: (event: ParsedSSEEvent) => void;
|
|
@@ -4686,6 +4765,18 @@ declare class AgentsEndpoint {
|
|
|
4686
4765
|
* Used when compact mode is enabled to keep token usage low.
|
|
4687
4766
|
*/
|
|
4688
4767
|
private generateCompactSummary;
|
|
4768
|
+
private isAssistantToolCallMessage;
|
|
4769
|
+
private isToolResultMessage;
|
|
4770
|
+
/**
|
|
4771
|
+
* Replay only complete adjacent tool-call/result pairs so provider validation
|
|
4772
|
+
* never sees an orphaned tool result after history trimming or resume.
|
|
4773
|
+
*/
|
|
4774
|
+
private sanitizeReplayHistoryMessages;
|
|
4775
|
+
/**
|
|
4776
|
+
* Keep replay trimming on a pair boundary. If the trim cut would start on a
|
|
4777
|
+
* tool-result message, slide back to include the matching assistant tool call.
|
|
4778
|
+
*/
|
|
4779
|
+
private trimReplayHistoryMessages;
|
|
4689
4780
|
/**
|
|
4690
4781
|
* Build messages for a session, injecting progress context for continuation sessions.
|
|
4691
4782
|
* Optionally accepts continuation context for marathon resume scenarios.
|
|
@@ -5278,4 +5369,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
5278
5369
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
5279
5370
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
5280
5371
|
|
|
5281
|
-
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 };
|
|
5372
|
+
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 AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, 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 LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, 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 };
|