@fevex/core 0.1.0-alpha.8 → 0.1.0-alpha.9
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/README.md +30 -1
- package/dist/agents/index.d.mts +2 -2
- package/dist/channels/index.d.mts +1 -1
- package/dist/evals/index.d.mts +3 -3
- package/dist/{fevex-DB0-k1fb.d.mts → fevex-WBvRWSpy.d.mts} +14 -8
- package/dist/http/index.d.mts +3 -3
- package/dist/{index-B8molngu.d.mts → index-3bFNzCiY.d.mts} +64 -3
- package/dist/{index-Bl0hR7EC.d.mts → index-BLgiXQK4.d.mts} +1 -1
- package/dist/{index-DtMxzCqj.d.mts → index-BbwT5XxQ.d.mts} +92 -2
- package/dist/{index-CuaetTLQ.d.mts → index-CmFBB4Px.d.mts} +2 -2
- package/dist/{index-CAyAoOW0.d.mts → index-D4mWV2zG.d.mts} +1 -1
- package/dist/{index-CecXoEbs.d.mts → index-D7FoZ7aQ.d.mts} +2 -2
- package/dist/{index-BfYzemR8.d.mts → index-D7r0puBi.d.mts} +14 -1
- package/dist/{index-CODYPevS.d.mts → index-D8lCFkc7.d.mts} +3 -3
- package/dist/{index-RKE3-CKs.d.mts → index-DgSxJZo4.d.mts} +2 -2
- package/dist/index.d.mts +11 -11
- package/dist/index.mjs +456 -77
- package/dist/knowledge/index.d.mts +1 -1
- package/dist/models/index.d.mts +2 -2
- package/dist/observability/index.d.mts +1 -1
- package/dist/policies/index.d.mts +1 -1
- package/dist/runtime/index.d.mts +2 -2
- package/dist/runtime/index.mjs +68 -1
- package/dist/teams/index.d.mts +1 -1
- package/dist/testing/index.d.mts +5 -5
- package/dist/tools/index.d.mts +2 -2
- package/dist/tools/index.mjs +221 -1
- package/dist/workflows/index.d.mts +1 -1
- package/package.json +1 -1
- package/dist/exact-definition-NHBBFlFR.d.mts +0 -4
package/README.md
CHANGED
|
@@ -516,7 +516,10 @@ window it replaces older completed turns with a summary, keeps system
|
|
|
516
516
|
instructions, the current request and the latest tool batch intact, and emits
|
|
517
517
|
`context.compacted`. The summary is cached on the session and reused across
|
|
518
518
|
runs; the original history is not rewritten. Use `compaction.compactor` to
|
|
519
|
-
inject a summarizer; the default is a deterministic digest
|
|
519
|
+
inject a summarizer; the default is a deterministic digest and
|
|
520
|
+
`createModelContextCompactor` provides a model-backed option. Redact event
|
|
521
|
+
summaries with `compaction.redactSummary` and read counters with
|
|
522
|
+
`app.getCompactionStats()`.
|
|
520
523
|
`limits.maxInputTokens` is still the cumulative spend cap, while
|
|
521
524
|
`contextBudget.contextWindow` is the model context window.
|
|
522
525
|
|
|
@@ -916,6 +919,32 @@ JSON request/response bodies. It rejects unsupported JSON Schema keywords,
|
|
|
916
919
|
remote refs, YAML, OpenAPI 3.0/3.2 and non-JSON payloads instead of silently
|
|
917
920
|
dropping constraints.
|
|
918
921
|
|
|
922
|
+
## Tool search and large results
|
|
923
|
+
|
|
924
|
+
Agents with large tool catalogs can expose `fevex__search_tools` instead of
|
|
925
|
+
sending every schema on every turn:
|
|
926
|
+
|
|
927
|
+
```ts
|
|
928
|
+
defineAgent({
|
|
929
|
+
name: 'support',
|
|
930
|
+
instructions: 'Answer with the available tools.',
|
|
931
|
+
tools: [...],
|
|
932
|
+
toolSearch: { mode: 'auto', threshold: 30, pinned: ['accounts_get'] },
|
|
933
|
+
});
|
|
934
|
+
```
|
|
935
|
+
|
|
936
|
+
`auto` enables search above the threshold, `on` always does and `off` exposes
|
|
937
|
+
every tool. Search only indexes the agent's own tools; allowlists, policies and
|
|
938
|
+
approvals still apply when a loaded tool executes. Add `semantic.embeddings` to
|
|
939
|
+
fuse lexical and vector candidates with Reciprocal Rank Fusion; failures fall
|
|
940
|
+
back to lexical. An optional `semantic.reranker` can reorder the fused top
|
|
941
|
+
candidates.
|
|
942
|
+
|
|
943
|
+
Tools can cap serialized results with `maxResultBytes`, or an agent/run can set
|
|
944
|
+
`limits.maxToolResultBytes`. The default cap is 1 MiB; use `false` to disable it.
|
|
945
|
+
Store larger outputs through `context.artifacts` and return the descriptor;
|
|
946
|
+
otherwise the run fails with `TOOL_RESULT_TOO_LARGE`.
|
|
947
|
+
|
|
919
948
|
## Channels
|
|
920
949
|
|
|
921
950
|
`@fevex/core/channels` provides a small adapter contract and `handleChannelInput`
|
package/dist/agents/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
export { AgentDefinition, AgentLimits, ContextBudget, defineAgent };
|
|
1
|
+
import { a as ToolSearchOptions, i as ToolSearchCheckpointOptions, n as AgentLimits, o as ToolSearchSemanticOptions, r as ContextBudget, s as defineAgent, t as AgentDefinition } from "../index-3bFNzCiY.mjs";
|
|
2
|
+
export { AgentDefinition, AgentLimits, ContextBudget, ToolSearchCheckpointOptions, ToolSearchOptions, ToolSearchSemanticOptions, defineAgent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChannelDeliveryOptions, c as ChannelEvent, d as ChannelMessage, f as ChannelOutput, h as ChannelRunResult, i as ChannelContext, l as ChannelEventType, m as ChannelRunOptions, n as handleChannelInput, o as ChannelElicitationContext, p as ChannelRunEvent, r as ChannelAdapter, s as ChannelError, t as deliverChannelRun, u as ChannelFailurePhase } from "../index-
|
|
1
|
+
import { a as ChannelDeliveryOptions, c as ChannelEvent, d as ChannelMessage, f as ChannelOutput, h as ChannelRunResult, i as ChannelContext, l as ChannelEventType, m as ChannelRunOptions, n as handleChannelInput, o as ChannelElicitationContext, p as ChannelRunEvent, r as ChannelAdapter, s as ChannelError, t as deliverChannelRun, u as ChannelFailurePhase } from "../index-CmFBB4Px.mjs";
|
|
2
2
|
export { ChannelAdapter, ChannelContext, ChannelDeliveryOptions, ChannelElicitationContext, ChannelError, ChannelEvent, ChannelEventType, ChannelFailurePhase, ChannelMessage, ChannelOutput, ChannelRunEvent, ChannelRunOptions, ChannelRunResult, deliverChannelRun, handleChannelInput };
|
package/dist/evals/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { r as ModelMetadata, s as ModelUsage } from "../index-D7r0puBi.mjs";
|
|
1
2
|
import { l as JsonValue, o as ExecutionContext, t as AgentEvent } from "../types-CckDlhYo.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as Fevex } from "../fevex-DB0-k1fb.mjs";
|
|
3
|
+
import { t as CostCalculator, u as TraceCost } from "../index-D7FoZ7aQ.mjs";
|
|
4
|
+
import { t as Fevex } from "../fevex-WBvRWSpy.mjs";
|
|
5
5
|
//#region src/evals/canonical-json.d.ts
|
|
6
6
|
/** Serializes JSON-like data with stable object-key ordering. */
|
|
7
7
|
declare function serializeCanonical(value: unknown): string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { S as ConnectionDefinition, j as ToolDefinition, o as ToolEmbeddingCache } from "./index-BbwT5XxQ.mjs";
|
|
2
|
+
import { t as ModelGateway } from "./index-D7r0puBi.mjs";
|
|
1
3
|
import { F as ArtifactStore, f as RunId, o as ExecutionContext, t as AgentEvent } from "./types-CckDlhYo.mjs";
|
|
2
|
-
import { t as ModelGateway } from "./index-BfYzemR8.mjs";
|
|
3
|
-
import { A as ListEventsOptions, G as RunStore, H as RunRequest, J as SessionId, K as Session, M as PurgeRunsOptions, N as PurgeRunsResult, P as ResumeRunResolution, S as CredentialStore, U as RunResult, V as RunRecord, Z as TeamRun, at as WorkflowRun, h as AgentRun, r as ContextBudget, s as ContextCompactionOptions, t as AgentDefinition } from "./index-B8molngu.mjs";
|
|
4
|
-
import { c as ContextProvider, f as MemoryStore } from "./index-CAyAoOW0.mjs";
|
|
5
|
-
import { i as ObservabilityStats, r as ObservabilityOptions } from "./index-CecXoEbs.mjs";
|
|
6
4
|
import { r as Sandbox } from "./index-CL7mu_x9.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { B as ResumeRunResolution, I as ListEventsOptions, J as RunRequest, O as CredentialStore, Q as Session, R as PurgeRunsOptions, Y as RunResult, Z as RunStore, a as ToolSearchOptions, d as ContextCompactionStats, dt as WorkflowRun, et as SessionId, q as RunRecord, r as ContextBudget, rt as TeamRun, t as AgentDefinition, u as ContextCompactionOptions, x as AgentRun, z as PurgeRunsResult } from "./index-3bFNzCiY.mjs";
|
|
6
|
+
import { c as ContextProvider, f as MemoryStore } from "./index-D4mWV2zG.mjs";
|
|
7
|
+
import { i as ObservabilityStats, r as ObservabilityOptions } from "./index-D7FoZ7aQ.mjs";
|
|
8
|
+
import { r as PolicyDefinition } from "./index-BLgiXQK4.mjs";
|
|
9
|
+
import { n as WorkflowDefinition } from "./index-DgSxJZo4.mjs";
|
|
10
|
+
import { t as TeamDefinition } from "./index-D8lCFkc7.mjs";
|
|
11
11
|
//#region src/fevex.d.ts
|
|
12
12
|
interface FevexAdmissionRequest {
|
|
13
13
|
kind: 'agent' | 'workflow' | 'team';
|
|
@@ -66,6 +66,10 @@ interface FevexConfig {
|
|
|
66
66
|
contextBudget?: ContextBudget;
|
|
67
67
|
/** Optional context compactor and token estimator. */
|
|
68
68
|
compaction?: ContextCompactionOptions;
|
|
69
|
+
/** Default on-demand tool search for agents that do not declare one. */
|
|
70
|
+
toolSearch?: ToolSearchOptions;
|
|
71
|
+
/** Optional durable cache for semantic tool embeddings. */
|
|
72
|
+
toolSearchCache?: ToolEmbeddingCache;
|
|
69
73
|
memoryStore?: MemoryStore;
|
|
70
74
|
runStore?: RunStore;
|
|
71
75
|
credentialStore?: CredentialStore;
|
|
@@ -106,6 +110,8 @@ interface Fevex {
|
|
|
106
110
|
}): Promise<void>;
|
|
107
111
|
/** Cumulative trace export counters for this runtime. */
|
|
108
112
|
getObservabilityStats(): ObservabilityStats;
|
|
113
|
+
/** Cumulative context compaction counters for this runtime. */
|
|
114
|
+
getCompactionStats(): ContextCompactionStats;
|
|
109
115
|
/**
|
|
110
116
|
* Stops admitting new work, drains or cancels active runs, and flushes trace
|
|
111
117
|
* exports. The host still owns closing its stores and external adapters.
|
package/dist/http/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { c as ReasoningEffort } from "../index-D7r0puBi.mjs";
|
|
1
2
|
import { D as ArtifactCatalog, F as ArtifactStore, f as RunId, k as ArtifactDescriptor, l as JsonValue, o as ExecutionContext, t as AgentEvent } from "../types-CckDlhYo.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as Fevex } from "../fevex-DB0-k1fb.mjs";
|
|
3
|
+
import { dt as WorkflowRun, et as SessionId, q as RunRecord, rt as TeamRun, x as AgentRun } from "../index-3bFNzCiY.mjs";
|
|
4
|
+
import { t as Fevex } from "../fevex-WBvRWSpy.mjs";
|
|
5
5
|
//#region src/http/protocol.d.ts
|
|
6
6
|
declare const FEVEX_HTTP_PROTOCOL_VERSION = "3";
|
|
7
7
|
declare const FEVEX_HTTP_PROTOCOL_VERSION_HEADER = "Fevex-Protocol-Version";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ExactDefinition } from "./
|
|
1
|
+
import { o as ToolEmbeddingCache, t as ToolReranker, z as ExactDefinition } from "./index-BbwT5XxQ.mjs";
|
|
2
|
+
import { c as ReasoningEffort, i as ModelRef, l as ToolChoice, r as ModelMetadata, s as ModelUsage, t as ModelGateway, u as EmbeddingModel } from "./index-D7r0puBi.mjs";
|
|
2
3
|
import { f as RunId, g as ToolSpec, i as AgentMessage, l as JsonValue, o as ExecutionContext, s as JsonObject, t as AgentEvent } from "./types-CckDlhYo.mjs";
|
|
3
|
-
import { c as ReasoningEffort, i as ModelRef, l as ToolChoice, r as ModelMetadata, s as ModelUsage } from "./index-BfYzemR8.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
//#region src/runtime/run-store.d.ts
|
|
6
6
|
/** Stable identifier for conversation history shared across runs. */
|
|
@@ -255,6 +255,8 @@ interface RunCheckpoint {
|
|
|
255
255
|
definitionHash: string;
|
|
256
256
|
limits?: AgentLimits;
|
|
257
257
|
contextBudget?: ContextBudget;
|
|
258
|
+
toolSearch?: ToolSearchCheckpointOptions;
|
|
259
|
+
loadedTools?: string[];
|
|
258
260
|
messages: AgentMessage[];
|
|
259
261
|
inputContent: string;
|
|
260
262
|
context?: ExecutionContext;
|
|
@@ -402,6 +404,7 @@ interface RunRequest<TInput = unknown, TOutput = unknown> {
|
|
|
402
404
|
context?: ExecutionContext;
|
|
403
405
|
limits?: AgentLimits;
|
|
404
406
|
contextBudget?: ContextBudget;
|
|
407
|
+
toolSearch?: ToolSearchOptions;
|
|
405
408
|
elicitation?: ElicitationMode;
|
|
406
409
|
approvalMode?: ApprovalMode;
|
|
407
410
|
toolChoice?: ToolChoice;
|
|
@@ -451,6 +454,16 @@ interface ContextCompactionOptions {
|
|
|
451
454
|
compactor?: ContextCompactor;
|
|
452
455
|
/** Defaults to a character-based estimate. */
|
|
453
456
|
estimateTokens?: ContextTokenEstimator;
|
|
457
|
+
/** Redacts the summary before it enters the context.compacted event. */
|
|
458
|
+
redactSummary?: (summary: string) => string;
|
|
459
|
+
}
|
|
460
|
+
/** Cumulative runtime counters for automatic context compaction. */
|
|
461
|
+
interface ContextCompactionStats {
|
|
462
|
+
compactions: number;
|
|
463
|
+
removedMessages: number;
|
|
464
|
+
estimatedTokens: number;
|
|
465
|
+
compactedTokens: number;
|
|
466
|
+
savedTokens: number;
|
|
454
467
|
}
|
|
455
468
|
interface ResolvedContextBudget {
|
|
456
469
|
contextWindow: number;
|
|
@@ -469,6 +482,22 @@ declare function estimateContextTokens(input: {
|
|
|
469
482
|
messages: AgentMessage[];
|
|
470
483
|
tools?: ToolSpec[];
|
|
471
484
|
}): number;
|
|
485
|
+
interface ModelContextCompactorOptions {
|
|
486
|
+
/** Model used only to summarize older context. */
|
|
487
|
+
model: ModelGateway;
|
|
488
|
+
/** Overrides the built-in summarization instructions. */
|
|
489
|
+
systemPrompt?: string;
|
|
490
|
+
/** Maximum output tokens for the summary. Defaults to 1,024. */
|
|
491
|
+
maxOutputTokens?: number;
|
|
492
|
+
/** Maximum characters sent to one summarization call. Defaults to 120,000. */
|
|
493
|
+
maxInputChars?: number;
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* Creates a semantic compactor backed by a model. Use a cheap, fast model and
|
|
497
|
+
* keep it separate from the agent model when possible. Large transcripts are
|
|
498
|
+
* summarized in chunks and then merged.
|
|
499
|
+
*/
|
|
500
|
+
declare function createModelContextCompactor(options: ModelContextCompactorOptions): ContextCompactor;
|
|
472
501
|
interface DigestContextCompactorOptions {
|
|
473
502
|
/** Maximum characters kept from one message. Defaults to 400. */
|
|
474
503
|
maxCharsPerMessage?: number;
|
|
@@ -512,6 +541,8 @@ interface AgentLimits {
|
|
|
512
541
|
maxToolCalls?: number;
|
|
513
542
|
maxInputTokens?: number | false;
|
|
514
543
|
maxOutputTokens?: number | false;
|
|
544
|
+
/** Maximum serialized bytes for one tool result. Use `false` to disable the default cap. */
|
|
545
|
+
maxToolResultBytes?: number | false;
|
|
515
546
|
}
|
|
516
547
|
/**
|
|
517
548
|
* Per-request model context budget. It is separate from
|
|
@@ -529,6 +560,35 @@ interface ContextBudget {
|
|
|
529
560
|
/** Multiplier applied to estimates to leave headroom. Defaults to 1.1. */
|
|
530
561
|
safetyFactor?: number;
|
|
531
562
|
}
|
|
563
|
+
interface ToolSearchSemanticOptions {
|
|
564
|
+
/** Embedding model used to index tools and queries. */
|
|
565
|
+
embeddings: EmbeddingModel;
|
|
566
|
+
/** Cache for tool vectors. Defaults to the runtime cache. */
|
|
567
|
+
cache?: ToolEmbeddingCache;
|
|
568
|
+
/** Vector candidates considered before fusion. Defaults to 20. */
|
|
569
|
+
topK?: number;
|
|
570
|
+
/** Minimum cosine score for vector candidates. Defaults to 0. */
|
|
571
|
+
minScore?: number;
|
|
572
|
+
/** Optional second-stage reranker over the fused candidates. */
|
|
573
|
+
reranker?: ToolReranker;
|
|
574
|
+
}
|
|
575
|
+
/** On-demand tool discovery for agents with large tool catalogs. */
|
|
576
|
+
interface ToolSearchOptions {
|
|
577
|
+
/** `auto` enables search above the configured thresholds. Defaults to `auto`. */
|
|
578
|
+
mode?: 'auto' | 'on' | 'off';
|
|
579
|
+
/** Tool-count threshold for `auto`. Defaults to 30. */
|
|
580
|
+
threshold?: number;
|
|
581
|
+
/** Estimated tool-token threshold for `auto`. */
|
|
582
|
+
tokenThreshold?: number;
|
|
583
|
+
/** Maximum tools returned by one search. Defaults to 5. */
|
|
584
|
+
limit?: number;
|
|
585
|
+
/** Tool names exposed without a search. */
|
|
586
|
+
pinned?: string[];
|
|
587
|
+
/** Optional hybrid lexical + vector retrieval. */
|
|
588
|
+
semantic?: ToolSearchSemanticOptions;
|
|
589
|
+
}
|
|
590
|
+
/** Serializable tool-search options stored in a run checkpoint. */
|
|
591
|
+
type ToolSearchCheckpointOptions = Omit<ToolSearchOptions, 'semantic'>;
|
|
532
592
|
interface AgentDefinition<TInput = unknown, TOutput = unknown> {
|
|
533
593
|
name: string;
|
|
534
594
|
instructions: string;
|
|
@@ -550,7 +610,8 @@ interface AgentDefinition<TInput = unknown, TOutput = unknown> {
|
|
|
550
610
|
outputSchema?: StandardSchemaV1<unknown, TOutput>;
|
|
551
611
|
limits?: AgentLimits;
|
|
552
612
|
contextBudget?: ContextBudget;
|
|
613
|
+
toolSearch?: ToolSearchOptions;
|
|
553
614
|
}
|
|
554
615
|
declare function defineAgent<T extends AgentDefinition>(agent: ExactDefinition<T, AgentDefinition>): T;
|
|
555
616
|
//#endregion
|
|
556
|
-
export {
|
|
617
|
+
export { SessionCompaction as $, ElicitationMode as A, ResumeRunResolution as B, ApprovalMode as C, CoordinatorRun as D, CoordinatorCheckpoint as E, ExecutionCreate as F, RunLease as G, RetainableRunStore as H, ListEventsOptions as I, RunRequest as J, RunPause as K, PendingToolExecution as L, ElicitationResolution as M, EventResolution as N, CredentialStore as O, ExecutionCommit as P, Session as Q, PurgeRunsOptions as R, AgentRunPause as S, ApprovalResolution as T, RunCheckpoint as U, RetainableRunStatus as V, RunCorrelation as W, RunStatus as X, RunResult as Y, RunStore as Z, createDigestContextCompactor as _, validatePurgeRunsOptions as _t, ToolSearchOptions as a, ToolExecutionRecord as at, resolveContextBudget as b, InMemoryRunStore as c, WorkflowBudgetUsage as ct, ContextCompactionStats as d, WorkflowRun as dt, SessionId as et, ContextCompactor as f, WorkflowStepRecord as ft, ResolvedContextBudget as g, validateListEventsOptions as gt, ModelContextCompactorOptions as h, isRetainableRunStore as ht, ToolSearchCheckpointOptions as i, TimerResolution as it, ElicitationRequest as j, DurableRunStore as k, ContextCompactionInput as l, WorkflowCheckpoint as lt, DigestContextCompactorOptions as m, isDurableRunStore as mt, AgentLimits as n, TeamCheckpoint as nt, ToolSearchSemanticOptions as o, ToolExecutionResolution as ot, ContextTokenEstimator as p, WorkflowWaitRecord as pt, RunRecord as q, ContextBudget as r, TeamRun as rt, defineAgent as s, ToolExecutionStatus as st, AgentDefinition as t, StoredRunCheckpoint as tt, ContextCompactionOptions as u, WorkflowCompensationRecord as ut, createModelContextCompactor as v, ApprovalRequest as w, AgentRun as x, estimateContextTokens as y, PurgeRunsResult as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { I as ToolRisk } from "./index-BbwT5XxQ.mjs";
|
|
1
2
|
import { f as RunId, l as JsonValue, o as ExecutionContext } from "./types-CckDlhYo.mjs";
|
|
2
|
-
import { x as ToolRisk } from "./index-DtMxzCqj.mjs";
|
|
3
3
|
//#region src/policies/policy.d.ts
|
|
4
4
|
/** Authorization outcome returned by a policy. */
|
|
5
5
|
type PolicyDecision = 'allow' | 'deny' | 'require_approval';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as EmbeddingModel } from "./index-D7r0puBi.mjs";
|
|
2
2
|
import { F as ArtifactStore, f as RunId, g as ToolSpec, h as ToolEventSource, l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-CckDlhYo.mjs";
|
|
3
3
|
import { i as SandboxCapabilities, r as Sandbox } from "./index-CL7mu_x9.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
|
+
//#region src/internal/exact-definition.d.ts
|
|
6
|
+
type ExactDefinition<TInput, TShape> = TInput & { readonly [TKey in Exclude<keyof TInput, keyof TShape>]: never; };
|
|
7
|
+
//#endregion
|
|
5
8
|
//#region src/tools/tool.d.ts
|
|
6
9
|
interface ToolExecutionContext {
|
|
7
10
|
runId: RunId;
|
|
@@ -37,6 +40,8 @@ interface ToolDefinition<TInput = unknown, TOutput = unknown> {
|
|
|
37
40
|
retry?: ToolRetryPolicy;
|
|
38
41
|
credentials?: string[];
|
|
39
42
|
sandbox?: SandboxCapabilities;
|
|
43
|
+
/** Maximum serialized bytes for one result. Use an artifact or `false` to opt out of the default cap. */
|
|
44
|
+
maxResultBytes?: number | false;
|
|
40
45
|
source?: ToolEventSource;
|
|
41
46
|
resolve?: (context?: ToolProviderContext) => Promise<ToolProviderTool | undefined>;
|
|
42
47
|
execute(input: TInput, context: ToolExecutionContext): TOutput | Promise<TOutput>;
|
|
@@ -99,6 +104,7 @@ interface ConnectionToolPolicy {
|
|
|
99
104
|
idempotency?: ToolIdempotency;
|
|
100
105
|
retry?: ToolRetryPolicy;
|
|
101
106
|
credentials?: string[];
|
|
107
|
+
maxResultBytes?: number | false;
|
|
102
108
|
}
|
|
103
109
|
interface ConnectionDefinition {
|
|
104
110
|
name: string;
|
|
@@ -131,4 +137,88 @@ interface FevexJsonSchemaValidator {
|
|
|
131
137
|
declare function validateFevexJsonSchemaProfile(schema: JsonObject, options?: FevexJsonSchemaProfileOptions): JsonObject;
|
|
132
138
|
declare function compileFevexJsonSchema(schema: JsonObject, options?: FevexJsonSchemaProfileOptions): FevexJsonSchemaValidator;
|
|
133
139
|
//#endregion
|
|
134
|
-
|
|
140
|
+
//#region src/tools/tool-index.d.ts
|
|
141
|
+
/** Cache of tool embedding vectors keyed by content hash. */
|
|
142
|
+
interface ToolEmbeddingCache {
|
|
143
|
+
get(key: string): number[] | undefined | Promise<number[] | undefined>;
|
|
144
|
+
set(key: string, vector: number[]): void | Promise<void>;
|
|
145
|
+
/** Optional batch read for durable caches with network/database latency. */
|
|
146
|
+
getMany?(keys: readonly string[]): Array<number[] | undefined> | Promise<Array<number[] | undefined>>;
|
|
147
|
+
/** Optional batch write for durable caches with network/database latency. */
|
|
148
|
+
setMany?(entries: ReadonlyArray<{
|
|
149
|
+
key: string;
|
|
150
|
+
vector: number[];
|
|
151
|
+
}>): void | Promise<void>;
|
|
152
|
+
}
|
|
153
|
+
interface InMemoryToolEmbeddingCacheOptions {
|
|
154
|
+
/** Maximum cached vectors. Defaults to 1,000. */
|
|
155
|
+
maxEntries?: number;
|
|
156
|
+
}
|
|
157
|
+
/** Bounded LRU cache for tool embeddings. */
|
|
158
|
+
declare class InMemoryToolEmbeddingCache implements ToolEmbeddingCache {
|
|
159
|
+
#private;
|
|
160
|
+
constructor(options?: InMemoryToolEmbeddingCacheOptions);
|
|
161
|
+
get size(): number;
|
|
162
|
+
get(key: string): number[] | undefined;
|
|
163
|
+
set(key: string, vector: number[]): void;
|
|
164
|
+
getMany(keys: readonly string[]): Array<number[] | undefined>;
|
|
165
|
+
setMany(entries: ReadonlyArray<{
|
|
166
|
+
key: string;
|
|
167
|
+
vector: number[];
|
|
168
|
+
}>): void;
|
|
169
|
+
}
|
|
170
|
+
interface ToolEmbeddingIndexEntry {
|
|
171
|
+
tool: ToolSpec;
|
|
172
|
+
vector: number[];
|
|
173
|
+
}
|
|
174
|
+
interface ToolEmbeddingIndex {
|
|
175
|
+
modelId: string;
|
|
176
|
+
dimensions: number;
|
|
177
|
+
entries: ToolEmbeddingIndexEntry[];
|
|
178
|
+
}
|
|
179
|
+
interface BuildToolEmbeddingIndexOptions {
|
|
180
|
+
tools: readonly ToolSpec[];
|
|
181
|
+
embeddings: EmbeddingModel;
|
|
182
|
+
cache?: ToolEmbeddingCache;
|
|
183
|
+
/** Texts per embedding request. Defaults to 64. */
|
|
184
|
+
batchSize?: number;
|
|
185
|
+
signal?: AbortSignal;
|
|
186
|
+
}
|
|
187
|
+
interface ToolEmbeddingMatch {
|
|
188
|
+
tool: ToolSpec;
|
|
189
|
+
score: number;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Builds or refreshes a semantic index for a tool catalog. The content key is
|
|
193
|
+
* `sha256(embeddingModel.id + text)`, so changing the model or the tool text
|
|
194
|
+
* invalidates the cached vector.
|
|
195
|
+
*/
|
|
196
|
+
declare function buildToolEmbeddingIndex(options: BuildToolEmbeddingIndexOptions): Promise<ToolEmbeddingIndex>;
|
|
197
|
+
/** Returns cosine matches above `minScore`, ordered by score. */
|
|
198
|
+
declare function searchToolEmbeddingIndex(index: ToolEmbeddingIndex, query: readonly number[], limit: number, minScore?: number): ToolEmbeddingMatch[];
|
|
199
|
+
/** Canonical text indexed for one tool: name, description and schema keywords. */
|
|
200
|
+
declare function toolEmbeddingText(tool: ToolSpec): string;
|
|
201
|
+
/** Extracts property names, descriptions, titles, required fields and enum values. */
|
|
202
|
+
declare function schemaKeywords(schema: JsonObject | undefined): string;
|
|
203
|
+
/** Stable content key for one embedding model and tool text. */
|
|
204
|
+
declare function toolEmbeddingKey(modelId: string, text: string): Promise<string>;
|
|
205
|
+
declare function cosineSimilarity(left: readonly number[], right: readonly number[]): number;
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/tools/tool-reranker.d.ts
|
|
208
|
+
/** One tool candidate passed to a reranker. */
|
|
209
|
+
interface ToolSearchCandidate {
|
|
210
|
+
tool: ToolSpec;
|
|
211
|
+
/** Lexical/vector fusion score. Rerankers may ignore it. */
|
|
212
|
+
score: number;
|
|
213
|
+
}
|
|
214
|
+
/** Optional second-stage ranking over the top lexical/vector candidates. */
|
|
215
|
+
interface ToolReranker {
|
|
216
|
+
rerank(input: {
|
|
217
|
+
query: string;
|
|
218
|
+
tools: ToolSearchCandidate[];
|
|
219
|
+
limit: number;
|
|
220
|
+
signal?: AbortSignal;
|
|
221
|
+
}): Promise<ToolSearchCandidate[]>;
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
export { ToolApproval as A, ConnectionToolPolicy as C, ToolProviderContext as D, ToolProvider as E, ToolRetryPolicy as F, ToolRisk as I, defineTool as L, ToolExecutionContext as M, ToolIdempotency as N, ToolProviderTool as O, ToolResult as P, toToolSpec as R, ConnectionDefinition as S, IntegrationErrorCategory as T, FevexJsonSchemaProfileLimits as _, InMemoryToolEmbeddingCacheOptions as a, compileFevexJsonSchema as b, ToolEmbeddingIndexEntry as c, cosineSimilarity as d, schemaKeywords as f, FEVEX_JSON_SCHEMA_PROFILE_VERSION as g, toolEmbeddingText as h, InMemoryToolEmbeddingCache as i, ToolDefinition as j, defineConnection as k, ToolEmbeddingMatch as l, toolEmbeddingKey as m, ToolSearchCandidate as n, ToolEmbeddingCache as o, searchToolEmbeddingIndex as p, BuildToolEmbeddingIndexOptions as r, ToolEmbeddingIndex as s, ToolReranker as t, buildToolEmbeddingIndex as u, FevexJsonSchemaProfileOptions as v, IntegrationError as w, validateFevexJsonSchemaProfile as x, FevexJsonSchemaValidator as y, ExactDefinition as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as RunId, o as ExecutionContext, s as JsonObject, t as AgentEvent } from "./types-CckDlhYo.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as Fevex } from "./fevex-
|
|
2
|
+
import { et as SessionId, j as ElicitationRequest, x as AgentRun } from "./index-3bFNzCiY.mjs";
|
|
3
|
+
import { t as Fevex } from "./fevex-WBvRWSpy.mjs";
|
|
4
4
|
//#region src/channels/channel.d.ts
|
|
5
5
|
interface ChannelMessage {
|
|
6
6
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-CckDlhYo.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { et as SessionId } from "./index-3bFNzCiY.mjs";
|
|
3
3
|
//#region src/knowledge/knowledge.d.ts
|
|
4
4
|
/** Runtime context supplied to knowledge providers and memory stores. */
|
|
5
5
|
interface KnowledgeContext {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { r as ModelMetadata, s as ModelUsage } from "./index-D7r0puBi.mjs";
|
|
1
2
|
import { f as RunId, l as JsonValue, s as JsonObject } from "./types-CckDlhYo.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { J as SessionId } from "./index-B8molngu.mjs";
|
|
3
|
+
import { et as SessionId } from "./index-3bFNzCiY.mjs";
|
|
4
4
|
//#region src/observability/trace.d.ts
|
|
5
5
|
/** Final state represented by an exported run trace. */
|
|
6
6
|
type TraceStatus = 'completed' | 'failed' | 'cancelled';
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import { g as ToolSpec, i as AgentMessage, l as JsonValue, m as ToolCall, s as JsonObject } from "./types-CckDlhYo.mjs";
|
|
2
|
+
//#region src/models/embedding.d.ts
|
|
3
|
+
/** Provider-neutral embedding model used to index tools and queries. */
|
|
4
|
+
interface EmbeddingModel {
|
|
5
|
+
/** Stable identity: provider, model and dimensions. Used in cache keys. */
|
|
6
|
+
readonly id: string;
|
|
7
|
+
/** Expected vector dimensions. Optional; inferred from the first result. */
|
|
8
|
+
readonly dimensions?: number;
|
|
9
|
+
embed(input: {
|
|
10
|
+
texts: string[];
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}): Promise<number[][]>;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
2
15
|
//#region src/models/model.d.ts
|
|
3
16
|
/** Provider-neutral reasoning levels accepted by model gateways. */
|
|
4
17
|
type ReasoningEffort = 'provider-default' | 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
@@ -48,4 +61,4 @@ type ModelStreamEvent<TOutput = unknown> = {
|
|
|
48
61
|
};
|
|
49
62
|
type ModelRef = string | ModelGateway;
|
|
50
63
|
//#endregion
|
|
51
|
-
export { ModelResult as a, ReasoningEffort as c, ModelRef as i, ToolChoice as l, ModelInput as n, ModelStreamEvent as o, ModelMetadata as r, ModelUsage as s, ModelGateway as t };
|
|
64
|
+
export { ModelResult as a, ReasoningEffort as c, ModelRef as i, ToolChoice as l, ModelInput as n, ModelStreamEvent as o, ModelMetadata as r, ModelUsage as s, ModelGateway as t, EmbeddingModel as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as ExactDefinition } from "./index-BbwT5XxQ.mjs";
|
|
2
2
|
import { o as ExecutionContext } from "./types-CckDlhYo.mjs";
|
|
3
|
-
import { n as AgentLimits } from "./index-
|
|
4
|
-
import { t as WorkflowAgentResult } from "./index-
|
|
3
|
+
import { n as AgentLimits } from "./index-3bFNzCiY.mjs";
|
|
4
|
+
import { t as WorkflowAgentResult } from "./index-DgSxJZo4.mjs";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/teams/team.d.ts
|
|
7
7
|
interface TeamMember {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as ExactDefinition } from "./index-BbwT5XxQ.mjs";
|
|
2
2
|
import { f as RunId, l as JsonValue, o as ExecutionContext, s as JsonObject } from "./types-CckDlhYo.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { J as RunRequest, Y as RunResult, et as SessionId, n as AgentLimits } from "./index-3bFNzCiY.mjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
//#region src/workflows/workflow.d.ts
|
|
6
6
|
/** Context shared with workflow steps and compensation handlers. */
|
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { A as ToolApproval, C as ConnectionToolPolicy, D as ToolProviderContext, E as ToolProvider, F as ToolRetryPolicy, I as ToolRisk, L as defineTool, M as ToolExecutionContext, N as ToolIdempotency, O as ToolProviderTool, P as ToolResult, R as toToolSpec, S as ConnectionDefinition, T as IntegrationErrorCategory, _ as FevexJsonSchemaProfileLimits, a as InMemoryToolEmbeddingCacheOptions, b as compileFevexJsonSchema, c as ToolEmbeddingIndexEntry, d as cosineSimilarity, f as schemaKeywords, g as FEVEX_JSON_SCHEMA_PROFILE_VERSION, h as toolEmbeddingText, i as InMemoryToolEmbeddingCache, j as ToolDefinition, k as defineConnection, l as ToolEmbeddingMatch, m as toolEmbeddingKey, n as ToolSearchCandidate, o as ToolEmbeddingCache, p as searchToolEmbeddingIndex, r as BuildToolEmbeddingIndexOptions, s as ToolEmbeddingIndex, t as ToolReranker, u as buildToolEmbeddingIndex, v as FevexJsonSchemaProfileOptions, w as IntegrationError, x as validateFevexJsonSchemaProfile, y as FevexJsonSchemaValidator } from "./index-BbwT5XxQ.mjs";
|
|
2
|
+
import { a as ModelResult, c as ReasoningEffort, i as ModelRef, l as ToolChoice, n as ModelInput, o as ModelStreamEvent, r as ModelMetadata, s as ModelUsage, t as ModelGateway, u as EmbeddingModel } from "./index-D7r0puBi.mjs";
|
|
1
3
|
import { A as ArtifactError, C as FileSystemArtifactStore, D as ArtifactCatalog, E as CatalogedArtifactStoreOptions, F as ArtifactStore, I as ArtifactStoreContext, L as ArtifactWrite, M as ArtifactId, N as ArtifactQuery, O as ArtifactContent, P as ArtifactRecord, R as artifactTenantId, S as InMemoryArtifactCatalog, T as CatalogedArtifactStore, _ as S3ArtifactStore, a as AgentMessageRole, b as InMemoryArtifactStore, c as JsonPrimitive, d as PROVIDER_SCHEMA_UNSUPPORTED, f as RunId, g as ToolSpec, h as ToolEventSource, i as AgentMessage, j as ArtifactErrorCode, k as ArtifactDescriptor, l as JsonValue, m as ToolCall, n as AgentEventPayloads, o as ExecutionContext, p as SCHEMA_NOT_TRANSPORTABLE, r as AgentEventType, s as JsonObject, t as AgentEvent, u as PROVIDER_REASONING_UNSUPPORTED, v as S3ArtifactStoreOptions, w as FileSystemArtifactStoreOptions, x as InMemoryArtifactStoreOptions, y as S3ObjectClient, z as assertArtifactId } from "./types-CckDlhYo.mjs";
|
|
2
|
-
import { a as ModelResult, c as ReasoningEffort, i as ModelRef, l as ToolChoice, n as ModelInput, o as ModelStreamEvent, r as ModelMetadata, s as ModelUsage, t as ModelGateway } from "./index-BfYzemR8.mjs";
|
|
3
|
-
import { $ as ToolExecutionRecord, A as ListEventsOptions, B as RunPause, C as DurableRunStore, D as EventResolution, E as ElicitationResolution, F as RetainableRunStatus, G as RunStore, H as RunRequest, I as RetainableRunStore, J as SessionId, K as Session, L as RunCheckpoint, M as PurgeRunsOptions, N as PurgeRunsResult, O as ExecutionCommit, P as ResumeRunResolution, Q as TimerResolution, R as RunCorrelation, S as CredentialStore, T as ElicitationRequest, U as RunResult, V as RunRecord, W as RunStatus, X as TeamCheckpoint, Y as StoredRunCheckpoint, Z as TeamRun, _ as ApprovalMode, a as InMemoryRunStore, at as WorkflowRun, b as CoordinatorCheckpoint, c as ContextCompactor, ct as isDurableRunStore, d as ResolvedContextBudget, dt as validatePurgeRunsOptions, et as ToolExecutionResolution, f as createDigestContextCompactor, g as AgentRunPause, h as AgentRun, i as defineAgent, it as WorkflowCompensationRecord, j as PendingToolExecution, k as ExecutionCreate, l as ContextTokenEstimator, lt as isRetainableRunStore, m as resolveContextBudget, n as AgentLimits, nt as WorkflowBudgetUsage, o as ContextCompactionInput, ot as WorkflowStepRecord, p as estimateContextTokens, q as SessionCompaction, r as ContextBudget, rt as WorkflowCheckpoint, s as ContextCompactionOptions, st as WorkflowWaitRecord, t as AgentDefinition, tt as ToolExecutionStatus, u as DigestContextCompactorOptions, ut as validateListEventsOptions, v as ApprovalRequest, w as ElicitationMode, x as CoordinatorRun, y as ApprovalResolution, z as RunLease } from "./index-B8molngu.mjs";
|
|
4
|
-
import { _ as defineContextProvider, a as AgentsMdOptions, c as ContextProvider, d as MemoryRecord, f as MemoryStore, g as createMemoryContextProvider, h as SkillDefinition, i as InMemoryMemoryStore, l as KnowledgeContext, m as ProgressiveSkillProvider, n as loadSkillFile, o as createAgentsMdContextProvider, p as MemoryWrite, r as loadSkillFiles, s as ContextBlock, t as LoadSkillFileOptions, u as MemoryQuery, v as defineSkill, y as isProgressiveSkillProvider } from "./index-CAyAoOW0.mjs";
|
|
5
4
|
import { a as SandboxError, c as sandboxResultToJson, i as SandboxCapabilities, n as createLocalSandbox, o as SandboxRunRequest, r as Sandbox, s as SandboxRunResult, t as LocalSandboxOptions } from "./index-CL7mu_x9.mjs";
|
|
6
|
-
import { C as
|
|
7
|
-
import { i as
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
10
|
-
import { a as
|
|
11
|
-
import { a as
|
|
5
|
+
import { $ as SessionCompaction, A as ElicitationMode, B as ResumeRunResolution, C as ApprovalMode, D as CoordinatorRun, E as CoordinatorCheckpoint, F as ExecutionCreate, G as RunLease, H as RetainableRunStore, I as ListEventsOptions, J as RunRequest, K as RunPause, L as PendingToolExecution, M as ElicitationResolution, N as EventResolution, O as CredentialStore, P as ExecutionCommit, Q as Session, R as PurgeRunsOptions, S as AgentRunPause, T as ApprovalResolution, U as RunCheckpoint, V as RetainableRunStatus, W as RunCorrelation, X as RunStatus, Y as RunResult, Z as RunStore, _ as createDigestContextCompactor, _t as validatePurgeRunsOptions, a as ToolSearchOptions, at as ToolExecutionRecord, b as resolveContextBudget, c as InMemoryRunStore, ct as WorkflowBudgetUsage, d as ContextCompactionStats, dt as WorkflowRun, et as SessionId, f as ContextCompactor, ft as WorkflowStepRecord, g as ResolvedContextBudget, gt as validateListEventsOptions, h as ModelContextCompactorOptions, ht as isRetainableRunStore, i as ToolSearchCheckpointOptions, it as TimerResolution, j as ElicitationRequest, k as DurableRunStore, l as ContextCompactionInput, lt as WorkflowCheckpoint, m as DigestContextCompactorOptions, mt as isDurableRunStore, n as AgentLimits, nt as TeamCheckpoint, o as ToolSearchSemanticOptions, ot as ToolExecutionResolution, p as ContextTokenEstimator, pt as WorkflowWaitRecord, q as RunRecord, r as ContextBudget, rt as TeamRun, s as defineAgent, st as ToolExecutionStatus, t as AgentDefinition, tt as StoredRunCheckpoint, u as ContextCompactionOptions, ut as WorkflowCompensationRecord, v as createModelContextCompactor, w as ApprovalRequest, x as AgentRun, y as estimateContextTokens, z as PurgeRunsResult } from "./index-3bFNzCiY.mjs";
|
|
6
|
+
import { _ as defineContextProvider, a as AgentsMdOptions, c as ContextProvider, d as MemoryRecord, f as MemoryStore, g as createMemoryContextProvider, h as SkillDefinition, i as InMemoryMemoryStore, l as KnowledgeContext, m as ProgressiveSkillProvider, n as loadSkillFile, o as createAgentsMdContextProvider, p as MemoryWrite, r as loadSkillFiles, s as ContextBlock, t as LoadSkillFileOptions, u as MemoryQuery, v as defineSkill, y as isProgressiveSkillProvider } from "./index-D4mWV2zG.mjs";
|
|
7
|
+
import { i as definePolicy, n as PolicyDecision, r as PolicyDefinition, t as PolicyAuthorization } from "./index-BLgiXQK4.mjs";
|
|
8
|
+
import { a as WorkflowStep, c as defineWorkflow, i as WorkflowEventResult, n as WorkflowDefinition, o as WorkflowStepContext, r as WorkflowEventDefinition, s as WorkflowStepOptions, t as WorkflowAgentResult } from "./index-DgSxJZo4.mjs";
|
|
9
|
+
import { a as TeamMember, c as defineTeam, i as TeamLimits, n as TeamDelegation, o as TeamStep, r as TeamHandoff, s as TeamTaskResult, t as TeamDefinition } from "./index-D8lCFkc7.mjs";
|
|
10
|
+
import { a as FevexLimits, c as createFevex, i as FevexConfig, n as FevexAdmission, o as FevexShutdownOptions, r as FevexAdmissionRequest, s as FevexShutdownResult, t as Fevex } from "./fevex-WBvRWSpy.mjs";
|
|
11
|
+
import { a as ChannelDeliveryOptions, c as ChannelEvent, d as ChannelMessage, f as ChannelOutput, h as ChannelRunResult, i as ChannelContext, l as ChannelEventType, m as ChannelRunOptions, n as handleChannelInput, o as ChannelElicitationContext, p as ChannelRunEvent, r as ChannelAdapter, s as ChannelError, t as deliverChannelRun, u as ChannelFailurePhase } from "./index-CmFBB4Px.mjs";
|
|
12
12
|
//#region src/configuration-error.d.ts
|
|
13
13
|
/**
|
|
14
14
|
* Composition error codes.
|
|
@@ -25,7 +25,7 @@ declare class FevexConfigurationError extends Error {
|
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/run-error.d.ts
|
|
28
|
-
type FevexRunErrorCode = 'INVALID_CURSOR' | 'AGENT_NOT_FOUND' | 'WORKFLOW_NOT_FOUND' | 'TEAM_NOT_FOUND' | 'MODEL_NOT_FOUND' | 'SESSION_NOT_FOUND' | 'DURABLE_STORE_REQUIRED' | 'RUN_CONFLICT' | 'RUN_NOT_RESUMABLE' | 'RUN_NOT_RECOVERABLE' | 'CHECKPOINT_UNSUPPORTED' | 'RUN_DEFINITION_CHANGED' | 'POLICY_DENIED' | 'ADMISSION_DENIED' | 'RUNTIME_CLOSED' | 'RETENTION_UNSUPPORTED' | 'EVENT_LIMIT_EXCEEDED' | 'CONTEXT_BUDGET_EXCEEDED' | 'CREDENTIAL_NOT_FOUND' | 'SANDBOX_REQUIRED' | 'ELICITATION_INVALID' | 'APPROVAL_INVALID' | 'RUN_PAUSED' | 'TOOL_EXECUTION_UNKNOWN';
|
|
28
|
+
type FevexRunErrorCode = 'INVALID_CURSOR' | 'AGENT_NOT_FOUND' | 'WORKFLOW_NOT_FOUND' | 'TEAM_NOT_FOUND' | 'MODEL_NOT_FOUND' | 'SESSION_NOT_FOUND' | 'DURABLE_STORE_REQUIRED' | 'RUN_CONFLICT' | 'RUN_NOT_RESUMABLE' | 'RUN_NOT_RECOVERABLE' | 'CHECKPOINT_UNSUPPORTED' | 'RUN_DEFINITION_CHANGED' | 'POLICY_DENIED' | 'ADMISSION_DENIED' | 'RUNTIME_CLOSED' | 'RETENTION_UNSUPPORTED' | 'EVENT_LIMIT_EXCEEDED' | 'CONTEXT_BUDGET_EXCEEDED' | 'TOOL_RESULT_TOO_LARGE' | 'CREDENTIAL_NOT_FOUND' | 'SANDBOX_REQUIRED' | 'ELICITATION_INVALID' | 'APPROVAL_INVALID' | 'RUN_PAUSED' | 'TOOL_EXECUTION_UNKNOWN';
|
|
29
29
|
declare class FevexRunError extends Error {
|
|
30
30
|
readonly code: FevexRunErrorCode;
|
|
31
31
|
readonly runId?: RunId | undefined;
|
|
@@ -39,4 +39,4 @@ declare class RunPausedError extends FevexRunError {
|
|
|
39
39
|
constructor(runId: RunId, pause: RunPause);
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
export { AgentDefinition, AgentEvent, AgentEventPayloads, AgentEventType, AgentLimits, AgentMessage, AgentMessageRole, AgentRun, AgentRunPause, AgentsMdOptions, ApprovalMode, ApprovalRequest, ApprovalResolution, ArtifactCatalog, ArtifactContent, ArtifactDescriptor, ArtifactError, ArtifactErrorCode, ArtifactId, ArtifactQuery, ArtifactRecord, ArtifactStore, ArtifactStoreContext, ArtifactWrite, CatalogedArtifactStore, CatalogedArtifactStoreOptions, ChannelAdapter, ChannelContext, ChannelDeliveryOptions, ChannelElicitationContext, ChannelError, ChannelEvent, ChannelEventType, ChannelFailurePhase, ChannelMessage, ChannelOutput, ChannelRunEvent, ChannelRunOptions, ChannelRunResult, ConnectionDefinition, ConnectionToolPolicy, ContextBlock, ContextBudget, ContextCompactionInput, ContextCompactionOptions, ContextCompactor, ContextProvider, ContextTokenEstimator, CoordinatorCheckpoint, CoordinatorRun, CredentialStore, DigestContextCompactorOptions, DurableRunStore, ElicitationMode, ElicitationRequest, ElicitationResolution, EventResolution, ExecutionCommit, ExecutionContext, ExecutionCreate, FEVEX_JSON_SCHEMA_PROFILE_VERSION, Fevex, FevexAdmission, FevexAdmissionRequest, FevexConfig, FevexConfigurationError, FevexConfigurationErrorCode, FevexJsonSchemaProfileLimits, FevexJsonSchemaProfileOptions, FevexJsonSchemaValidator, FevexLimits, FevexRunError, FevexRunErrorCode, FevexShutdownOptions, FevexShutdownResult, FileSystemArtifactStore, FileSystemArtifactStoreOptions, InMemoryArtifactCatalog, InMemoryArtifactStore, InMemoryArtifactStoreOptions, InMemoryMemoryStore, InMemoryRunStore, IntegrationError, IntegrationErrorCategory, JsonObject, JsonPrimitive, JsonValue, KnowledgeContext, ListEventsOptions, LoadSkillFileOptions, LocalSandboxOptions, MemoryQuery, MemoryRecord, MemoryStore, MemoryWrite, ModelGateway, ModelInput, ModelMetadata, ModelRef, ModelResult, ModelStreamEvent, ModelUsage, PROVIDER_REASONING_UNSUPPORTED, PROVIDER_SCHEMA_UNSUPPORTED, PendingToolExecution, PolicyAuthorization, PolicyDecision, PolicyDefinition, ProgressiveSkillProvider, PurgeRunsOptions, PurgeRunsResult, ReasoningEffort, ResolvedContextBudget, ResumeRunResolution, RetainableRunStatus, RetainableRunStore, RunCheckpoint, RunCorrelation, RunId, RunLease, RunPause, RunPausedError, RunRecord, RunRequest, RunResult, RunStatus, RunStore, S3ArtifactStore, S3ArtifactStoreOptions, S3ObjectClient, SCHEMA_NOT_TRANSPORTABLE, Sandbox, SandboxCapabilities, SandboxError, SandboxRunRequest, SandboxRunResult, Session, SessionCompaction, SessionId, SkillDefinition, StoredRunCheckpoint, TeamCheckpoint, type TeamDefinition, type TeamDelegation, type TeamHandoff, type TeamLimits, type TeamMember, TeamRun, type TeamStep, type TeamTaskResult, TimerResolution, ToolApproval, ToolCall, ToolChoice, ToolDefinition, ToolEventSource, ToolExecutionContext, ToolExecutionRecord, ToolExecutionResolution, ToolExecutionStatus, ToolIdempotency, ToolProvider, ToolProviderContext, ToolProviderTool, ToolResult, ToolRetryPolicy, ToolRisk, ToolSpec, WorkflowAgentResult, WorkflowBudgetUsage, WorkflowCheckpoint, WorkflowCompensationRecord, WorkflowDefinition, WorkflowEventDefinition, WorkflowEventResult, WorkflowRun, WorkflowStep, WorkflowStepContext, WorkflowStepOptions, WorkflowStepRecord, WorkflowWaitRecord, artifactTenantId, assertArtifactId, compileFevexJsonSchema, createAgentsMdContextProvider, createDigestContextCompactor, createFevex, createLocalSandbox, createMemoryContextProvider, defineAgent, defineConnection, defineContextProvider, definePolicy, defineSkill, defineTeam, defineTool, defineWorkflow, deliverChannelRun, estimateContextTokens, handleChannelInput, isDurableRunStore, isProgressiveSkillProvider, isRetainableRunStore, loadSkillFile, loadSkillFiles, resolveContextBudget, sandboxResultToJson, toToolSpec, validateFevexJsonSchemaProfile, validateListEventsOptions, validatePurgeRunsOptions };
|
|
42
|
+
export { AgentDefinition, AgentEvent, AgentEventPayloads, AgentEventType, AgentLimits, AgentMessage, AgentMessageRole, AgentRun, AgentRunPause, AgentsMdOptions, ApprovalMode, ApprovalRequest, ApprovalResolution, ArtifactCatalog, ArtifactContent, ArtifactDescriptor, ArtifactError, ArtifactErrorCode, ArtifactId, ArtifactQuery, ArtifactRecord, ArtifactStore, ArtifactStoreContext, ArtifactWrite, BuildToolEmbeddingIndexOptions, CatalogedArtifactStore, CatalogedArtifactStoreOptions, ChannelAdapter, ChannelContext, ChannelDeliveryOptions, ChannelElicitationContext, ChannelError, ChannelEvent, ChannelEventType, ChannelFailurePhase, ChannelMessage, ChannelOutput, ChannelRunEvent, ChannelRunOptions, ChannelRunResult, ConnectionDefinition, ConnectionToolPolicy, ContextBlock, ContextBudget, ContextCompactionInput, ContextCompactionOptions, ContextCompactionStats, ContextCompactor, ContextProvider, ContextTokenEstimator, CoordinatorCheckpoint, CoordinatorRun, CredentialStore, DigestContextCompactorOptions, DurableRunStore, ElicitationMode, ElicitationRequest, ElicitationResolution, EmbeddingModel, EventResolution, ExecutionCommit, ExecutionContext, ExecutionCreate, FEVEX_JSON_SCHEMA_PROFILE_VERSION, Fevex, FevexAdmission, FevexAdmissionRequest, FevexConfig, FevexConfigurationError, FevexConfigurationErrorCode, FevexJsonSchemaProfileLimits, FevexJsonSchemaProfileOptions, FevexJsonSchemaValidator, FevexLimits, FevexRunError, FevexRunErrorCode, FevexShutdownOptions, FevexShutdownResult, FileSystemArtifactStore, FileSystemArtifactStoreOptions, InMemoryArtifactCatalog, InMemoryArtifactStore, InMemoryArtifactStoreOptions, InMemoryMemoryStore, InMemoryRunStore, InMemoryToolEmbeddingCache, InMemoryToolEmbeddingCacheOptions, IntegrationError, IntegrationErrorCategory, JsonObject, JsonPrimitive, JsonValue, KnowledgeContext, ListEventsOptions, LoadSkillFileOptions, LocalSandboxOptions, MemoryQuery, MemoryRecord, MemoryStore, MemoryWrite, ModelContextCompactorOptions, ModelGateway, ModelInput, ModelMetadata, ModelRef, ModelResult, ModelStreamEvent, ModelUsage, PROVIDER_REASONING_UNSUPPORTED, PROVIDER_SCHEMA_UNSUPPORTED, PendingToolExecution, PolicyAuthorization, PolicyDecision, PolicyDefinition, ProgressiveSkillProvider, PurgeRunsOptions, PurgeRunsResult, ReasoningEffort, ResolvedContextBudget, ResumeRunResolution, RetainableRunStatus, RetainableRunStore, RunCheckpoint, RunCorrelation, RunId, RunLease, RunPause, RunPausedError, RunRecord, RunRequest, RunResult, RunStatus, RunStore, S3ArtifactStore, S3ArtifactStoreOptions, S3ObjectClient, SCHEMA_NOT_TRANSPORTABLE, Sandbox, SandboxCapabilities, SandboxError, SandboxRunRequest, SandboxRunResult, Session, SessionCompaction, SessionId, SkillDefinition, StoredRunCheckpoint, TeamCheckpoint, type TeamDefinition, type TeamDelegation, type TeamHandoff, type TeamLimits, type TeamMember, TeamRun, type TeamStep, type TeamTaskResult, TimerResolution, ToolApproval, ToolCall, ToolChoice, ToolDefinition, ToolEmbeddingCache, ToolEmbeddingIndex, ToolEmbeddingIndexEntry, ToolEmbeddingMatch, ToolEventSource, ToolExecutionContext, ToolExecutionRecord, ToolExecutionResolution, ToolExecutionStatus, ToolIdempotency, ToolProvider, ToolProviderContext, ToolProviderTool, ToolReranker, ToolResult, ToolRetryPolicy, ToolRisk, ToolSearchCandidate, ToolSearchCheckpointOptions, ToolSearchOptions, ToolSearchSemanticOptions, ToolSpec, WorkflowAgentResult, WorkflowBudgetUsage, WorkflowCheckpoint, WorkflowCompensationRecord, WorkflowDefinition, WorkflowEventDefinition, WorkflowEventResult, WorkflowRun, WorkflowStep, WorkflowStepContext, WorkflowStepOptions, WorkflowStepRecord, WorkflowWaitRecord, artifactTenantId, assertArtifactId, buildToolEmbeddingIndex, compileFevexJsonSchema, cosineSimilarity, createAgentsMdContextProvider, createDigestContextCompactor, createFevex, createLocalSandbox, createMemoryContextProvider, createModelContextCompactor, defineAgent, defineConnection, defineContextProvider, definePolicy, defineSkill, defineTeam, defineTool, defineWorkflow, deliverChannelRun, estimateContextTokens, handleChannelInput, isDurableRunStore, isProgressiveSkillProvider, isRetainableRunStore, loadSkillFile, loadSkillFiles, resolveContextBudget, sandboxResultToJson, schemaKeywords, searchToolEmbeddingIndex, toToolSpec, toolEmbeddingKey, toolEmbeddingText, validateFevexJsonSchemaProfile, validateListEventsOptions, validatePurgeRunsOptions };
|