@agentfield/sdk 0.1.143-rc.3 → 0.1.143-rc.5
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.d.ts +139 -7
- package/dist/index.js +785 -137
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -334,6 +334,8 @@ declare class AIClient {
|
|
|
334
334
|
private readonly config;
|
|
335
335
|
private rateLimiter?;
|
|
336
336
|
constructor(config?: AIConfig);
|
|
337
|
+
/** Prompt-template overrides configured on this agent, if any (issue #229). */
|
|
338
|
+
get promptTemplates(): AIConfig['promptTemplates'];
|
|
337
339
|
generate<T>(prompt: string, options: AIRequestOptions & {
|
|
338
340
|
schema: ZodSchema<T>;
|
|
339
341
|
}): Promise<T>;
|
|
@@ -1137,6 +1139,85 @@ declare class DidInterface {
|
|
|
1137
1139
|
exportAuditTrail(filters?: AuditTrailFilters): Promise<AuditTrailExport>;
|
|
1138
1140
|
}
|
|
1139
1141
|
|
|
1142
|
+
/**
|
|
1143
|
+
* Configurable templates for the text and tool-message framing the SDK injects
|
|
1144
|
+
* into LLM calls (issue #229).
|
|
1145
|
+
*
|
|
1146
|
+
* Field names line up with the Python SDK's `PromptTemplates` and the Go SDK's
|
|
1147
|
+
* `PromptConfig` (`toolCallLimitReached`, `toolErrorFormatter`,
|
|
1148
|
+
* `toolResultFormatter`). Defaults reproduce the SDK's prior output exactly, so
|
|
1149
|
+
* a reasoner that never sets `promptTemplates` sees no change.
|
|
1150
|
+
*
|
|
1151
|
+
* The TypeScript SDK uses the Vercel AI SDK's native structured output
|
|
1152
|
+
* (`generateObject`) and injects no schema instruction, so, unlike Python,
|
|
1153
|
+
* there is no `schemaInstruction` field here.
|
|
1154
|
+
*/
|
|
1155
|
+
/** Formats a failed tool call before it is returned to the model. */
|
|
1156
|
+
type ToolErrorFormatter = (toolName: string, error: string) => unknown;
|
|
1157
|
+
/** Formats a successful tool call before it is returned to the model. */
|
|
1158
|
+
type ToolResultFormatter = (toolName: string, result: unknown) => unknown;
|
|
1159
|
+
interface PromptTemplates {
|
|
1160
|
+
/**
|
|
1161
|
+
* Optional system prompt describing how to use tools, appended after the
|
|
1162
|
+
* caller's system prompt. Undefined means nothing is injected (the default),
|
|
1163
|
+
* so existing `tools=` calls are unchanged; set it to opt in.
|
|
1164
|
+
*/
|
|
1165
|
+
toolSystemPrompt?: string;
|
|
1166
|
+
/** Message returned to the model when the tool-call limit is reached. */
|
|
1167
|
+
toolCallLimitReached?: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* Formats a failed tool call `(toolName, error)` before it is sent back to
|
|
1170
|
+
* the model. Return a string to send verbatim, or any value to be returned
|
|
1171
|
+
* as-is (the AI SDK serializes it).
|
|
1172
|
+
*/
|
|
1173
|
+
toolErrorFormatter?: ToolErrorFormatter;
|
|
1174
|
+
/**
|
|
1175
|
+
* Formats a successful tool call `(toolName, result)` before it is sent back
|
|
1176
|
+
* to the model. Return a string to send verbatim, or any value to be
|
|
1177
|
+
* returned as-is.
|
|
1178
|
+
*/
|
|
1179
|
+
toolResultFormatter?: ToolResultFormatter;
|
|
1180
|
+
}
|
|
1181
|
+
declare const DEFAULT_TOOL_CALL_LIMIT_REACHED = "Tool call limit reached. Please provide a final response.";
|
|
1182
|
+
/** Default tool-error framing: the prior `{ error, tool }` object. */
|
|
1183
|
+
declare const defaultToolErrorFormatter: ToolErrorFormatter;
|
|
1184
|
+
/** Default tool-result framing: the raw result, unframed. */
|
|
1185
|
+
declare const defaultToolResultFormatter: ToolResultFormatter;
|
|
1186
|
+
/** A fully-populated set of templates with every default filled in. */
|
|
1187
|
+
interface ResolvedPromptTemplates {
|
|
1188
|
+
toolSystemPrompt?: string;
|
|
1189
|
+
toolCallLimitReached: string;
|
|
1190
|
+
toolErrorFormatter: ToolErrorFormatter;
|
|
1191
|
+
toolResultFormatter: ToolResultFormatter;
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* Merges a partial override over the built-in defaults. An undefined field
|
|
1195
|
+
* (or an undefined `overrides`) keeps the default; `toolSystemPrompt` stays
|
|
1196
|
+
* undefined unless explicitly set.
|
|
1197
|
+
*/
|
|
1198
|
+
declare function resolvePromptTemplates(overrides?: Partial<PromptTemplates>): ResolvedPromptTemplates;
|
|
1199
|
+
/**
|
|
1200
|
+
* Cross-SDK message-source taxonomy, shared with the Python and Go SDKs so a
|
|
1201
|
+
* trace tagged in one SDK reads the same in another (issue #229).
|
|
1202
|
+
* `sdk.schema_instruction` exists only in the Python SDK (which injects it;
|
|
1203
|
+
* TypeScript uses native structured output).
|
|
1204
|
+
*/
|
|
1205
|
+
type MessageSource = 'user' | 'assistant' | 'sdk.tool_system_prompt' | 'sdk.tool_result' | 'sdk.tool_error' | 'sdk.tool_limit';
|
|
1206
|
+
declare const TRACE_SOURCE_USER = "user";
|
|
1207
|
+
declare const TRACE_SOURCE_ASSISTANT = "assistant";
|
|
1208
|
+
declare const TRACE_SOURCE_TOOL_SYSTEM_PROMPT = "sdk.tool_system_prompt";
|
|
1209
|
+
declare const TRACE_SOURCE_TOOL_RESULT = "sdk.tool_result";
|
|
1210
|
+
declare const TRACE_SOURCE_TOOL_ERROR = "sdk.tool_error";
|
|
1211
|
+
declare const TRACE_SOURCE_TOOL_LIMIT = "sdk.tool_limit";
|
|
1212
|
+
/**
|
|
1213
|
+
* Tags a message the loop sent with where it came from. `message` references
|
|
1214
|
+
* the wire content (not a reshaped copy); `source` uses the taxonomy above.
|
|
1215
|
+
*/
|
|
1216
|
+
interface TracedMessage {
|
|
1217
|
+
message: unknown;
|
|
1218
|
+
source: MessageSource;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1140
1221
|
/**
|
|
1141
1222
|
* Tool calling support for AgentField agents.
|
|
1142
1223
|
*
|
|
@@ -1163,6 +1244,11 @@ interface ToolCallConfig {
|
|
|
1163
1244
|
agentIds?: string[];
|
|
1164
1245
|
/** Filter by health status (default: "healthy"). */
|
|
1165
1246
|
healthStatus?: string;
|
|
1247
|
+
/**
|
|
1248
|
+
* Overridable text and tool-message framing. Defaults reproduce the SDK's
|
|
1249
|
+
* prior output byte-for-byte (issue #229).
|
|
1250
|
+
*/
|
|
1251
|
+
promptTemplates?: Partial<PromptTemplates>;
|
|
1166
1252
|
}
|
|
1167
1253
|
interface ToolCallRecord {
|
|
1168
1254
|
toolName: string;
|
|
@@ -1177,6 +1263,12 @@ interface ToolCallTrace {
|
|
|
1177
1263
|
totalTurns: number;
|
|
1178
1264
|
totalToolCalls: number;
|
|
1179
1265
|
finalResponse?: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* Each message the loop sent, tagged with its source. Optional and additive
|
|
1268
|
+
* so callers that build a ToolCallTrace in their own tests are unaffected
|
|
1269
|
+
* (issue #229).
|
|
1270
|
+
*/
|
|
1271
|
+
messages?: TracedMessage[];
|
|
1180
1272
|
}
|
|
1181
1273
|
/**
|
|
1182
1274
|
* Options for tool-calling in ctx.ai().
|
|
@@ -1531,11 +1623,11 @@ interface SkillOptions {
|
|
|
1531
1623
|
|
|
1532
1624
|
interface HarnessConfig {
|
|
1533
1625
|
/**
|
|
1534
|
-
* Coding agent provider. Defaults to `
|
|
1626
|
+
* Coding agent provider. Defaults to `codeaf`, AgentField's native harness.
|
|
1535
1627
|
* When unset, `AGENTFIELD_HARNESS_PROVIDER` is consulted before the default.
|
|
1536
1628
|
* An explicit value always wins.
|
|
1537
1629
|
*/
|
|
1538
|
-
provider?: 'aforge' | 'claude-code' | 'codex' | 'gemini' | 'opencode' | 'pi' | 'omp';
|
|
1630
|
+
provider?: 'codeaf' | 'aforge' | 'claude-code' | 'codex' | 'gemini' | 'opencode' | 'pi' | 'omp';
|
|
1539
1631
|
/** Model identifier. Empty means the provider's own default. */
|
|
1540
1632
|
model?: string;
|
|
1541
1633
|
/**
|
|
@@ -1555,6 +1647,7 @@ interface HarnessConfig {
|
|
|
1555
1647
|
env?: Record<string, string>;
|
|
1556
1648
|
cwd?: string;
|
|
1557
1649
|
projectDir?: string;
|
|
1650
|
+
codeafBin?: string;
|
|
1558
1651
|
aforgeBin?: string;
|
|
1559
1652
|
codexBin?: string;
|
|
1560
1653
|
geminiBin?: string;
|
|
@@ -1564,7 +1657,7 @@ interface HarnessConfig {
|
|
|
1564
1657
|
}
|
|
1565
1658
|
interface HarnessOptions {
|
|
1566
1659
|
/**
|
|
1567
|
-
* Coding agent provider. Defaults to `
|
|
1660
|
+
* Coding agent provider. Defaults to `codeaf`, AgentField's native harness.
|
|
1568
1661
|
* When unset, `AGENTFIELD_HARNESS_PROVIDER` is consulted before the default.
|
|
1569
1662
|
* An explicit value always wins.
|
|
1570
1663
|
*/
|
|
@@ -1588,6 +1681,7 @@ interface HarnessOptions {
|
|
|
1588
1681
|
env?: Record<string, string>;
|
|
1589
1682
|
cwd?: string;
|
|
1590
1683
|
projectDir?: string;
|
|
1684
|
+
codeafBin?: string;
|
|
1591
1685
|
aforgeBin?: string;
|
|
1592
1686
|
codexBin?: string;
|
|
1593
1687
|
geminiBin?: string;
|
|
@@ -1616,6 +1710,8 @@ interface Metrics {
|
|
|
1616
1710
|
}
|
|
1617
1711
|
type FailureType = 'none' | 'crash' | 'timeout' | 'api_error' | 'no_output' | 'schema';
|
|
1618
1712
|
interface RawResult {
|
|
1713
|
+
/** Actual adapter used, including alias resolution and legacy fallback. */
|
|
1714
|
+
provider?: string;
|
|
1619
1715
|
result?: string;
|
|
1620
1716
|
messages: Array<Record<string, unknown>>;
|
|
1621
1717
|
metrics: Metrics;
|
|
@@ -1625,6 +1721,8 @@ interface RawResult {
|
|
|
1625
1721
|
returnCode?: number;
|
|
1626
1722
|
}
|
|
1627
1723
|
interface HarnessResult {
|
|
1724
|
+
/** Actual provider used for this run. */
|
|
1725
|
+
provider?: string;
|
|
1628
1726
|
result?: string;
|
|
1629
1727
|
parsed?: unknown;
|
|
1630
1728
|
isError: boolean;
|
|
@@ -1714,6 +1812,11 @@ interface AIConfig {
|
|
|
1714
1812
|
rateLimitJitterFactor?: number;
|
|
1715
1813
|
rateLimitCircuitBreakerThreshold?: number;
|
|
1716
1814
|
rateLimitCircuitBreakerTimeout?: number;
|
|
1815
|
+
/**
|
|
1816
|
+
* Overridable templates for text and tool-message framing the SDK injects
|
|
1817
|
+
* into LLM calls. Merged over the defaults per call (issue #229).
|
|
1818
|
+
*/
|
|
1819
|
+
promptTemplates?: Partial<PromptTemplates>;
|
|
1717
1820
|
}
|
|
1718
1821
|
interface MemoryConfig {
|
|
1719
1822
|
defaultScope?: MemoryScope;
|
|
@@ -1901,6 +2004,7 @@ type RunnerOptions = Omit<HarnessOptions, 'schema'> & {
|
|
|
1901
2004
|
maxDelay?: number;
|
|
1902
2005
|
backoffFactor?: number;
|
|
1903
2006
|
projectDir?: string;
|
|
2007
|
+
codeafBin?: string;
|
|
1904
2008
|
aforgeBin?: string;
|
|
1905
2009
|
codexBin?: string;
|
|
1906
2010
|
geminiBin?: string;
|
|
@@ -1923,6 +2027,12 @@ declare class HarnessRunner {
|
|
|
1923
2027
|
|
|
1924
2028
|
type Environment = Readonly<Record<string, string | undefined>>;
|
|
1925
2029
|
declare const PROVIDER_SPECS: {
|
|
2030
|
+
readonly codeaf: {
|
|
2031
|
+
readonly binary: "codeaf";
|
|
2032
|
+
readonly versionArgs: readonly ["version"];
|
|
2033
|
+
readonly installCommand: "af codeaf ensure";
|
|
2034
|
+
readonly authEnvVars: readonly ["OPENROUTER_API_KEY"];
|
|
2035
|
+
};
|
|
1926
2036
|
readonly aforge: {
|
|
1927
2037
|
readonly binary: "aforge";
|
|
1928
2038
|
readonly versionArgs: readonly ["version"];
|
|
@@ -1967,7 +2077,7 @@ declare const PROVIDER_SPECS: {
|
|
|
1967
2077
|
};
|
|
1968
2078
|
};
|
|
1969
2079
|
type HarnessProviderName = keyof typeof PROVIDER_SPECS;
|
|
1970
|
-
declare const SUPPORTED_PROVIDER_NAMES: readonly ("gemini" | "aforge" | "claude-code" | "codex" | "opencode" | "pi" | "omp")[];
|
|
2080
|
+
declare const SUPPORTED_PROVIDER_NAMES: readonly ("gemini" | "codeaf" | "aforge" | "claude-code" | "codex" | "opencode" | "pi" | "omp")[];
|
|
1971
2081
|
interface ProviderHealth {
|
|
1972
2082
|
provider: HarnessProviderName;
|
|
1973
2083
|
binary: string | null;
|
|
@@ -2840,16 +2950,38 @@ declare function splitModelVariant(model: unknown): ModelVariant;
|
|
|
2840
2950
|
declare function resolveModelAndVariant(options: Record<string, unknown>): ModelVariant;
|
|
2841
2951
|
|
|
2842
2952
|
declare const SUPPORTED_PROVIDERS: ReadonlySet<string>;
|
|
2843
|
-
declare const DEFAULT_HARNESS_PROVIDER = "
|
|
2953
|
+
declare const DEFAULT_HARNESS_PROVIDER = "codeaf";
|
|
2844
2954
|
declare const HARNESS_PROVIDER_ENV_VAR = "AGENTFIELD_HARNESS_PROVIDER";
|
|
2845
2955
|
/**
|
|
2846
2956
|
* Applies harness provider precedence: an explicit name wins, then
|
|
2847
|
-
* AGENTFIELD_HARNESS_PROVIDER, then DEFAULT_HARNESS_PROVIDER ("
|
|
2957
|
+
* AGENTFIELD_HARNESS_PROVIDER, then DEFAULT_HARNESS_PROVIDER ("codeaf").
|
|
2848
2958
|
* Blank / whitespace-only values are treated as unset.
|
|
2849
2959
|
*/
|
|
2850
2960
|
declare function resolveProviderName(explicit?: string): string;
|
|
2851
2961
|
declare function buildProvider(config: HarnessConfig): Promise<HarnessProvider>;
|
|
2852
2962
|
|
|
2963
|
+
/**
|
|
2964
|
+
* Aforge CLI provider. `exec` is the default direct one-shot entry point; set
|
|
2965
|
+
* `AGENTFIELD_AFORGE_COMMAND=do` to opt into Aforge's routed workflow.
|
|
2966
|
+
*/
|
|
2967
|
+
declare class AforgeProvider implements HarnessProvider {
|
|
2968
|
+
private readonly deadline?;
|
|
2969
|
+
private readonly bin;
|
|
2970
|
+
constructor(bin?: string, deadline?: number | undefined);
|
|
2971
|
+
execute(prompt: string, options: Record<string, unknown>): Promise<RawResult>;
|
|
2972
|
+
private executeImpl;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
declare const CODEAF_DEFAULT_MODEL = "~deepseek/deepseek-v4-flash-latest";
|
|
2976
|
+
/** Canonical CodeAF headless adapter, with lazy managed installation and legacy fallback. */
|
|
2977
|
+
declare class CodeafProvider implements HarnessProvider {
|
|
2978
|
+
private readonly bin?;
|
|
2979
|
+
private readonly alias;
|
|
2980
|
+
constructor(bin?: string | undefined, alias?: boolean);
|
|
2981
|
+
execute(prompt: string, options: Record<string, unknown>): Promise<RawResult>;
|
|
2982
|
+
private executeImpl;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2853
2985
|
/**
|
|
2854
2986
|
* Canonical execution status utilities for the AgentField TypeScript SDK.
|
|
2855
2987
|
*
|
|
@@ -3186,4 +3318,4 @@ declare function simulateSchedule<R>(handler: (ctx: SimulatedContext) => R | Pro
|
|
|
3186
3318
|
*/
|
|
3187
3319
|
declare function loadFixture(source: string): Record<string, unknown>;
|
|
3188
3320
|
|
|
3189
|
-
export { ACTIVE_STATUSES, AIClient, type AIConfig, type AIEmbeddingOptions, type AIRequestOptions, type AIStream, type AIToolRequestOptions, Agent, type AgentCapability, type AgentConfig, type AgentHandler, AgentRouter, type AgentRouterOptions, type AgentState, ApprovalClient, type ApprovalDecision, type ApprovalRequestResponse, ApprovalResult, type ApprovalStatusResponse, Audio, type AudioOutput, type AudioRequest, type AuditTrailExport, type AuditTrailFilters, type Awaitable, type BinaryResolver, CANONICAL_STATUSES, type CompactCapability, type CompactDiscoveryResponse, type CostEntry, type CostEntryInit, CostTracker, DEFAULT_HARNESS_PROVIDER, DIDAuthenticator, type DIDIdentity, type DIDIdentityPackage, type DIDRegistrationRequest, type DIDRegistrationResponse, type DeploymentType, DidClient, DidInterface, DidManager, type DidResolver, type DiscoveryFormat, type DiscoveryOptions, type DiscoveryPagination, type DiscoveryResponse, type DiscoveryResult, type EventTriggerBinding, type EventTriggerSpec, ExecutionContext, type ExecutionCredential, type ExecutionLogAttributes, type ExecutionLogBatchPayload, type ExecutionLogContext, type ExecutionLogEmitOptions, type ExecutionLogEntry, type ExecutionLogLevel, type ExecutionLogTransport, type ExecutionLogTransportPayload, type ExecutionLogWireEntry, ExecutionLogger, type ExecutionLoggerOptions, type ExecutionMetadata, ExecutionStatus, type ExecutionStatusValue, File, type FileOutput, type GenerateCredentialOptions, type GenerateCredentialParams, HARNESS_PROVIDER_ENV_VAR, HEADER_CALLER_DID, HEADER_DID_NONCE, HEADER_DID_SIGNATURE, HEADER_DID_TIMESTAMP, type HarnessConfig, type HarnessDoctorOptions, type HarnessOptions, type HarnessProvider, type HarnessProviderName, HarnessProviderUnavailable, type HarnessResult, HarnessRunner, type HealthStatus, Image, type ImageOutput, type ImageRequest, JWE_ALG, JWE_ENC, KEY_AGREEMENT_TYPE, MODEL_VARIANT_SEP, type MediaProvider, MediaProviderError, type MediaResponse, MediaRouter, type MemoryChangeEvent, MemoryClient, MemoryClientBase, type MemoryConfig, MemoryEventClient, type MemoryEventHandler, type MemoryEventHistoryOptions, type MemoryEventSubscriptionOptions, MemoryInterface, type MemoryRequestMetadata, type MemoryRequestOptions, type MemoryScope, type MemoryWatchHandler, type Metrics, type ModelVariant, type MultimodalContent, MultimodalResponse, OpenRouterMediaProvider, type OpenRouterMediaProviderOptions, PauseClock, PauseManager, type Payload, PayloadEncryptionError, type ProviderHealth, RateLimitError, type RateLimiterOptions, type RawExecutionContext, type RawResult, RealtimeSession, type ReasonerCapability, ReasonerContext, type ReasonerDefinition, type ReasonerHandler, type ReasonerOptions, type RequestApprovalPayload, SUPPORTED_PROVIDERS, SUPPORTED_PROVIDER_NAMES, SUPPORTED_SESSION_TRANSPORTS, type ScheduleTriggerBinding, type ScheduleTriggerSpec, type ServerlessAdapter, type ServerlessEvent, type ServerlessResponse, type SessionDefinition, type SessionOptions, type SessionProvider, type SessionTransport, type SessionTransportCapability, SessionTransportError, type SessionTurn, type SimulateScheduleOptions, type SimulateTriggerOptions, type SimulatedContext, type SkillCapability, SkillContext, type SkillDefinition, type SkillHandler, type SkillOptions, StatelessRateLimiter, TERMINAL_STATUSES, Text, type ToolCallConfig, type ToolCallRecord, type ToolCallTrace, type ToolsOption, type TriggerBinding, type TriggerContext, type TriggerEnvelope, type TurnDetection, USAGE_ENVELOPE_KEY, type UnwrapResult, type UsageEntryWire, type UsageSummaryWire, type VectorSearchOptions, type VectorSearchResult, type VersionProbe, Video, type VideoFrameImage, type VideoInputReference, type VideoRequest, type WaitForApprovalOptions, type WorkflowCredential, type WorkflowMetadata, type WorkflowProgressOptions, WorkflowReporter, type WrapperProbe, type ZodSchema, applyTriggerTransform, attachUsageToSyncResult, audioFromBase64, audioFromBuffer, audioFromFile, audioFromUrl, audioMediaType, buildProvider, buildSessionDefinition, buildToolConfig, capabilitiesToTools, capabilityToMetadataTool, capabilityToTool, createExecutionLogger, createHarnessResult, createMetrics, createMultimodalResponse, createRawResult, decrypt, decryptToString, deriveProvider, encryptForDid, encryptToJwk, ensureCliAvailable, eventTrigger, executeToolCallLoop, extractKeyAgreementJwk, fileFromBase64, fileFromBuffer, fileFromPath, fileFromUrl, findExecutable, generateX25519KeyPair, getCurrentContext, getCurrentSkillContext, guessUrlMimeType, harnessDoctor, imageFromBase64, imageFromBuffer, imageFromFile, imageFromUrl, installApprovalWebhookRoute, isActive, isExecutionLogBatchPayload, isTerminal, isTriggerEnvelope, loadFixture, normalizeExecutionLogEntry, normalizeSessionTransportValue, normalizeStatus, normalizeTurnDetection, resolveModelAndVariant, resolveProviderName, scheduleTrigger, serializeExecutionLogEntry, simulateSchedule, simulateTrigger, splitModelVariant, text, triggerToPayload, unwrapEnvelope, usageSummaryOrNull, validateSessionTransport, videoFromBase64, videoFromBuffer, videoFromFile, videoFromUrl };
|
|
3321
|
+
export { ACTIVE_STATUSES, AIClient, type AIConfig, type AIEmbeddingOptions, type AIRequestOptions, type AIStream, type AIToolRequestOptions, AforgeProvider, Agent, type AgentCapability, type AgentConfig, type AgentHandler, AgentRouter, type AgentRouterOptions, type AgentState, ApprovalClient, type ApprovalDecision, type ApprovalRequestResponse, ApprovalResult, type ApprovalStatusResponse, Audio, type AudioOutput, type AudioRequest, type AuditTrailExport, type AuditTrailFilters, type Awaitable, type BinaryResolver, CANONICAL_STATUSES, CODEAF_DEFAULT_MODEL, CodeafProvider, type CompactCapability, type CompactDiscoveryResponse, type CostEntry, type CostEntryInit, CostTracker, DEFAULT_HARNESS_PROVIDER, DEFAULT_TOOL_CALL_LIMIT_REACHED, DIDAuthenticator, type DIDIdentity, type DIDIdentityPackage, type DIDRegistrationRequest, type DIDRegistrationResponse, type DeploymentType, DidClient, DidInterface, DidManager, type DidResolver, type DiscoveryFormat, type DiscoveryOptions, type DiscoveryPagination, type DiscoveryResponse, type DiscoveryResult, type EventTriggerBinding, type EventTriggerSpec, ExecutionContext, type ExecutionCredential, type ExecutionLogAttributes, type ExecutionLogBatchPayload, type ExecutionLogContext, type ExecutionLogEmitOptions, type ExecutionLogEntry, type ExecutionLogLevel, type ExecutionLogTransport, type ExecutionLogTransportPayload, type ExecutionLogWireEntry, ExecutionLogger, type ExecutionLoggerOptions, type ExecutionMetadata, ExecutionStatus, type ExecutionStatusValue, File, type FileOutput, type GenerateCredentialOptions, type GenerateCredentialParams, HARNESS_PROVIDER_ENV_VAR, HEADER_CALLER_DID, HEADER_DID_NONCE, HEADER_DID_SIGNATURE, HEADER_DID_TIMESTAMP, type HarnessConfig, type HarnessDoctorOptions, type HarnessOptions, type HarnessProvider, type HarnessProviderName, HarnessProviderUnavailable, type HarnessResult, HarnessRunner, type HealthStatus, Image, type ImageOutput, type ImageRequest, JWE_ALG, JWE_ENC, KEY_AGREEMENT_TYPE, MODEL_VARIANT_SEP, type MediaProvider, MediaProviderError, type MediaResponse, MediaRouter, type MemoryChangeEvent, MemoryClient, MemoryClientBase, type MemoryConfig, MemoryEventClient, type MemoryEventHandler, type MemoryEventHistoryOptions, type MemoryEventSubscriptionOptions, MemoryInterface, type MemoryRequestMetadata, type MemoryRequestOptions, type MemoryScope, type MemoryWatchHandler, type MessageSource, type Metrics, type ModelVariant, type MultimodalContent, MultimodalResponse, OpenRouterMediaProvider, type OpenRouterMediaProviderOptions, PauseClock, PauseManager, type Payload, PayloadEncryptionError, type PromptTemplates, type ProviderHealth, RateLimitError, type RateLimiterOptions, type RawExecutionContext, type RawResult, RealtimeSession, type ReasonerCapability, ReasonerContext, type ReasonerDefinition, type ReasonerHandler, type ReasonerOptions, type RequestApprovalPayload, type ResolvedPromptTemplates, SUPPORTED_PROVIDERS, SUPPORTED_PROVIDER_NAMES, SUPPORTED_SESSION_TRANSPORTS, type ScheduleTriggerBinding, type ScheduleTriggerSpec, type ServerlessAdapter, type ServerlessEvent, type ServerlessResponse, type SessionDefinition, type SessionOptions, type SessionProvider, type SessionTransport, type SessionTransportCapability, SessionTransportError, type SessionTurn, type SimulateScheduleOptions, type SimulateTriggerOptions, type SimulatedContext, type SkillCapability, SkillContext, type SkillDefinition, type SkillHandler, type SkillOptions, StatelessRateLimiter, TERMINAL_STATUSES, TRACE_SOURCE_ASSISTANT, TRACE_SOURCE_TOOL_ERROR, TRACE_SOURCE_TOOL_LIMIT, TRACE_SOURCE_TOOL_RESULT, TRACE_SOURCE_TOOL_SYSTEM_PROMPT, TRACE_SOURCE_USER, Text, type ToolCallConfig, type ToolCallRecord, type ToolCallTrace, type ToolErrorFormatter, type ToolResultFormatter, type ToolsOption, type TracedMessage, type TriggerBinding, type TriggerContext, type TriggerEnvelope, type TurnDetection, USAGE_ENVELOPE_KEY, type UnwrapResult, type UsageEntryWire, type UsageSummaryWire, type VectorSearchOptions, type VectorSearchResult, type VersionProbe, Video, type VideoFrameImage, type VideoInputReference, type VideoRequest, type WaitForApprovalOptions, type WorkflowCredential, type WorkflowMetadata, type WorkflowProgressOptions, WorkflowReporter, type WrapperProbe, type ZodSchema, applyTriggerTransform, attachUsageToSyncResult, audioFromBase64, audioFromBuffer, audioFromFile, audioFromUrl, audioMediaType, buildProvider, buildSessionDefinition, buildToolConfig, capabilitiesToTools, capabilityToMetadataTool, capabilityToTool, createExecutionLogger, createHarnessResult, createMetrics, createMultimodalResponse, createRawResult, decrypt, decryptToString, defaultToolErrorFormatter, defaultToolResultFormatter, deriveProvider, encryptForDid, encryptToJwk, ensureCliAvailable, eventTrigger, executeToolCallLoop, extractKeyAgreementJwk, fileFromBase64, fileFromBuffer, fileFromPath, fileFromUrl, findExecutable, generateX25519KeyPair, getCurrentContext, getCurrentSkillContext, guessUrlMimeType, harnessDoctor, imageFromBase64, imageFromBuffer, imageFromFile, imageFromUrl, installApprovalWebhookRoute, isActive, isExecutionLogBatchPayload, isTerminal, isTriggerEnvelope, loadFixture, normalizeExecutionLogEntry, normalizeSessionTransportValue, normalizeStatus, normalizeTurnDetection, resolveModelAndVariant, resolvePromptTemplates, resolveProviderName, scheduleTrigger, serializeExecutionLogEntry, simulateSchedule, simulateTrigger, splitModelVariant, text, triggerToPayload, unwrapEnvelope, usageSummaryOrNull, validateSessionTransport, videoFromBase64, videoFromBuffer, videoFromFile, videoFromUrl };
|