@fevex/core 0.1.0-alpha.0 → 0.1.0-alpha.10
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 +1110 -52
- package/dist/agents/index.d.mts +2 -23
- package/dist/agents/index.mjs +1 -1
- package/dist/artifacts/index.d.mts +2 -0
- package/dist/artifacts/index.mjs +2 -0
- package/dist/artifacts-gUzemET7.mjs +440 -0
- package/dist/channels/index.d.mts +2 -0
- package/dist/channels/index.mjs +192 -0
- package/dist/evals/index.d.mts +153 -0
- package/dist/evals/index.mjs +422 -0
- package/dist/fevex-_KOsOsB8.d.mts +129 -0
- package/dist/http/index.d.mts +150 -0
- package/dist/http/index.mjs +692 -0
- package/dist/index-26ilbzAs.d.mts +50 -0
- package/dist/index-B8EcvWeN.d.mts +103 -0
- package/dist/index-BEqYWean.d.mts +118 -0
- package/dist/index-Btth7rdL.d.mts +58 -0
- package/dist/index-CFzrvDQ0.d.mts +21 -0
- package/dist/index-CIHWc5V1.d.mts +116 -0
- package/dist/index-D7r0puBi.d.mts +64 -0
- package/dist/index-DHcfIfh-.d.mts +224 -0
- package/dist/index-DUhNa7IR.d.mts +73 -0
- package/dist/index-lCCFokc6.d.mts +617 -0
- package/dist/index.d.mts +39 -15
- package/dist/index.mjs +4962 -208
- package/dist/knowledge/index.d.mts +2 -0
- package/dist/knowledge/index.mjs +289 -0
- package/dist/model-stream-JQdHDDcj.mjs +131 -0
- package/dist/models/index.d.mts +2 -27
- package/dist/observability/index.d.mts +2 -0
- package/dist/observability/index.mjs +1 -0
- package/dist/policies/index.d.mts +2 -0
- package/dist/policies/index.mjs +6 -0
- package/dist/run-error-Cr17wPGH.mjs +23 -0
- package/dist/run-support-CmZ6Xo6H.mjs +162 -0
- package/dist/runtime/index.d.mts +2 -17
- package/dist/runtime/index.mjs +354 -1
- package/dist/sandbox/index.d.mts +2 -0
- package/dist/sandbox/index.mjs +147 -0
- package/dist/teams/index.d.mts +2 -0
- package/dist/teams/index.mjs +2 -0
- package/dist/teams-Ctz676G4.mjs +82 -0
- package/dist/testing/index.d.mts +40 -8
- package/dist/testing/index.mjs +668 -23
- package/dist/tools/index.d.mts +3 -31
- package/dist/tools/index.mjs +442 -2
- package/dist/types-CckDlhYo.d.mts +575 -0
- package/dist/workflows/index.d.mts +2 -0
- package/dist/workflows/index.mjs +6 -0
- package/package.json +43 -3
- package/dist/exact-definition-NHBBFlFR.d.mts +0 -4
- package/dist/index-D_RBJmVt.d.mts +0 -44
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,16 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
1
|
+
import { E as ToolProvider } from "../index-DHcfIfh-.mjs";
|
|
2
|
+
import { a as ModelResult, n as ModelInput, t as ModelGateway } from "../index-D7r0puBi.mjs";
|
|
3
|
+
import { m as ToolCall } from "../types-CckDlhYo.mjs";
|
|
4
|
+
import { j as ElicitationRequest, k as DurableRunStore } from "../index-lCCFokc6.mjs";
|
|
5
|
+
import { f as MemoryStore } from "../index-CIHWc5V1.mjs";
|
|
6
|
+
import { d as ChannelMessage, f as ChannelOutput, o as ChannelElicitationContext, r as ChannelAdapter } from "../index-B8EcvWeN.mjs";
|
|
7
|
+
//#region src/testing/contracts.d.ts
|
|
8
8
|
interface ModelGatewayContract {
|
|
9
9
|
output?: unknown;
|
|
10
10
|
toolCall?: ToolCall;
|
|
11
11
|
usage?: boolean;
|
|
12
12
|
error?: Error;
|
|
13
13
|
}
|
|
14
|
+
interface ChannelAdapterContract<TInput, TOutput> {
|
|
15
|
+
input: TInput;
|
|
16
|
+
message: ChannelMessage;
|
|
17
|
+
output: ChannelOutput;
|
|
18
|
+
delivered: TOutput;
|
|
19
|
+
ignoredInput?: TInput;
|
|
20
|
+
elicitation?: {
|
|
21
|
+
request: ElicitationRequest;
|
|
22
|
+
context: ChannelElicitationContext;
|
|
23
|
+
delivered: TOutput;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface ToolProviderContract {
|
|
27
|
+
allowedTool: string;
|
|
28
|
+
input?: unknown;
|
|
29
|
+
output?: unknown;
|
|
30
|
+
disallowedTool?: string;
|
|
31
|
+
safeError?: boolean;
|
|
32
|
+
timeout?: boolean;
|
|
33
|
+
}
|
|
34
|
+
declare function testMemoryStore(store: MemoryStore): Promise<void>;
|
|
35
|
+
declare function testToolProvider(provider: ToolProvider, contract: ToolProviderContract): Promise<void>;
|
|
36
|
+
declare function testChannelAdapter<TInput, TOutput>(adapter: ChannelAdapter<TInput, TOutput>, contract: ChannelAdapterContract<TInput, TOutput>): Promise<void>;
|
|
14
37
|
declare function testModelGateway(model: ModelGateway, contract?: ModelGatewayContract): Promise<void>;
|
|
38
|
+
declare function testRunStore(store: DurableRunStore): Promise<void>;
|
|
39
|
+
declare function testRetentionStore(store: DurableRunStore): Promise<void>;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/testing/fake-model.d.ts
|
|
42
|
+
interface FakeModel extends ModelGateway {
|
|
43
|
+
readonly calls: readonly ModelInput[];
|
|
44
|
+
}
|
|
45
|
+
/** Creates a deterministic model gateway for unit tests. */
|
|
46
|
+
declare function fakeModel(...responses: ModelResult[]): FakeModel;
|
|
15
47
|
//#endregion
|
|
16
|
-
export { FakeModel, ModelGatewayContract, fakeModel, testModelGateway };
|
|
48
|
+
export { ChannelAdapterContract, FakeModel, ModelGatewayContract, ToolProviderContract, fakeModel, testChannelAdapter, testMemoryStore, testModelGateway, testRetentionStore, testRunStore, testToolProvider };
|