@dxos/assistant 0.8.2-main.fbd8ed0 → 0.8.2-staging.7ac8446
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/lib/browser/{chunk-B4HAWUFW.mjs → chunk-PND5VR6D.mjs} +286 -757
- package/dist/lib/browser/chunk-PND5VR6D.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +324 -7
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +102 -139
- package/dist/lib/browser/testing/index.mjs.map +4 -4
- package/dist/lib/node/{chunk-NOB7CIIC.cjs → chunk-IBOBRBDF.cjs} +303 -768
- package/dist/lib/node/chunk-IBOBRBDF.cjs.map +7 -0
- package/dist/lib/node/index.cjs +353 -36
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +93 -128
- package/dist/lib/node/testing/index.cjs.map +4 -4
- package/dist/lib/node-esm/{chunk-SAWYU3V5.mjs → chunk-DCQJOLSR.mjs} +286 -757
- package/dist/lib/node-esm/chunk-DCQJOLSR.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +324 -7
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +102 -139
- package/dist/lib/node-esm/testing/index.mjs.map +4 -4
- package/dist/types/src/ai-service/edge-client.d.ts +5 -4
- package/dist/types/src/ai-service/edge-client.d.ts.map +1 -1
- package/dist/types/src/ai-service/message-collector.d.ts +6 -0
- package/dist/types/src/ai-service/message-collector.d.ts.map +1 -1
- package/dist/types/src/ai-service/ollama-client.d.ts +2 -6
- package/dist/types/src/ai-service/ollama-client.d.ts.map +1 -1
- package/dist/types/src/ai-service/parser.d.ts +3 -0
- package/dist/types/src/ai-service/parser.d.ts.map +1 -1
- package/dist/types/src/ai-service/service.d.ts +2 -18
- package/dist/types/src/ai-service/service.d.ts.map +1 -1
- package/dist/types/src/ai-service/stream.d.ts.map +1 -1
- package/dist/types/src/ai-service/testing/mock.d.ts +2 -6
- package/dist/types/src/ai-service/testing/mock.d.ts.map +1 -1
- package/dist/types/src/ai-service/testing/test-stream.d.ts.map +1 -1
- package/dist/types/src/ai-service/types.d.ts +101 -144
- package/dist/types/src/ai-service/types.d.ts.map +1 -1
- package/dist/types/src/ai-service/util/sse.d.ts.map +1 -1
- package/dist/types/src/{experimental/conversation → conversation}/conversation.d.ts +21 -2
- package/dist/types/src/conversation/conversation.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.test.d.ts.map +1 -0
- package/dist/types/src/conversation/index.d.ts.map +1 -0
- package/dist/types/src/{experimental/conversation → conversation}/types.d.ts +12 -11
- package/dist/types/src/conversation/types.d.ts.map +1 -0
- package/dist/types/src/cypher/ast.d.ts.map +1 -0
- package/dist/types/src/cypher/combinators.d.ts.map +1 -0
- package/dist/types/src/cypher/combinators.test.d.ts.map +1 -0
- package/dist/types/src/cypher/echo-data-source.d.ts.map +1 -0
- package/dist/types/src/cypher/execution-plan.d.ts.map +1 -0
- package/dist/types/src/cypher/execution-plan.test.d.ts.map +1 -0
- package/dist/types/src/cypher/index.d.ts.map +1 -0
- package/dist/types/src/cypher/parjs.d.ts.map +1 -0
- package/dist/types/src/cypher/parser.d.ts.map +1 -0
- package/dist/types/src/cypher/query-executor.d.ts.map +1 -0
- package/dist/types/src/cypher/query-executor.test.d.ts.map +1 -0
- package/dist/types/src/cypher/schema.d.ts.map +1 -0
- package/dist/types/src/cypher/schema.test.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/session/index.d.ts +0 -2
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/session.d.ts +13 -33
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +0 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/logger.d.ts +1 -1
- package/dist/types/src/testing/logger.d.ts.map +1 -1
- package/dist/types/src/testing/ollama.d.ts.map +1 -1
- package/dist/types/src/testing/query-promts.d.ts +4 -4
- package/dist/types/src/testing/query-promts.d.ts.map +1 -1
- package/dist/types/src/testing/test-data.d.ts +5 -5
- package/dist/types/src/testing/test-data.d.ts.map +1 -1
- package/dist/types/src/testing/test-schema.d.ts +23 -25
- package/dist/types/src/testing/test-schema.d.ts.map +1 -1
- package/dist/types/src/util/trim.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -20
- package/src/ai-service/client.test.ts +73 -55
- package/src/ai-service/edge-client.ts +20 -13
- package/src/ai-service/ollama-client.ts +10 -17
- package/src/ai-service/parser.ts +2 -13
- package/src/ai-service/service.ts +3 -19
- package/src/ai-service/testing/mock.ts +1 -9
- package/src/ai-service/types.ts +15 -24
- package/src/bin/chat.ts +4 -4
- package/src/{experimental/conversation → conversation}/conversation.test.ts +5 -5
- package/src/{experimental/conversation → conversation}/conversation.ts +119 -4
- package/src/{experimental/conversation → conversation}/types.ts +14 -11
- package/src/{experimental/cypher → cypher}/combinators.test.ts +4 -4
- package/src/{experimental/cypher → cypher}/echo-data-source.ts +11 -11
- package/src/{experimental/cypher → cypher}/execution-plan.test.ts +1 -1
- package/src/{experimental/cypher → cypher}/query-executor.test.ts +2 -2
- package/src/{experimental/cypher → cypher}/schema.test.ts +3 -3
- package/src/{experimental/cypher → cypher}/schema.ts +1 -1
- package/src/index.ts +2 -3
- package/src/session/index.ts +0 -2
- package/src/session/session.test.ts +63 -35
- package/src/session/session.ts +151 -297
- package/src/testing/artifacts.test.ts +22 -22
- package/src/testing/index.ts +0 -1
- package/src/testing/logger.ts +1 -1
- package/src/testing/query-promts.ts +6 -6
- package/src/testing/query.test.ts +21 -18
- package/src/testing/test-data.ts +72 -79
- package/src/testing/test-schema.ts +29 -28
- package/dist/lib/browser/chunk-B4HAWUFW.mjs.map +0 -7
- package/dist/lib/node/chunk-NOB7CIIC.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-SAWYU3V5.mjs.map +0 -7
- package/dist/types/src/experimental/conversation/conversation.d.ts.map +0 -1
- package/dist/types/src/experimental/conversation/conversation.test.d.ts.map +0 -1
- package/dist/types/src/experimental/conversation/index.d.ts.map +0 -1
- package/dist/types/src/experimental/conversation/types.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/ast.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/combinators.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/combinators.test.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/echo-data-source.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/execution-plan.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/execution-plan.test.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/index.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/parjs.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/parser.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/query-executor.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/query-executor.test.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/schema.d.ts.map +0 -1
- package/dist/types/src/experimental/cypher/schema.test.d.ts.map +0 -1
- package/dist/types/src/experimental/index.d.ts +0 -3
- package/dist/types/src/experimental/index.d.ts.map +0 -1
- package/dist/types/src/experimental/ner/ner.test.d.ts +0 -2
- package/dist/types/src/experimental/ner/ner.test.d.ts.map +0 -1
- package/dist/types/src/experimental/research/exa.d.ts +0 -6
- package/dist/types/src/experimental/research/exa.d.ts.map +0 -1
- package/dist/types/src/experimental/research/research.test.d.ts +0 -2
- package/dist/types/src/experimental/research/research.test.d.ts.map +0 -1
- package/dist/types/src/session/tools.d.ts +0 -18
- package/dist/types/src/session/tools.d.ts.map +0 -1
- package/dist/types/src/session/version-pin.d.ts +0 -22
- package/dist/types/src/session/version-pin.d.ts.map +0 -1
- package/dist/types/src/session/version-pin.test.d.ts +0 -2
- package/dist/types/src/session/version-pin.test.d.ts.map +0 -1
- package/dist/types/src/testing/printer.d.ts +0 -6
- package/dist/types/src/testing/printer.d.ts.map +0 -1
- package/src/experimental/index.ts +0 -6
- package/src/experimental/ner/ner.test.ts +0 -163
- package/src/experimental/research/exa.ts +0 -38
- package/src/experimental/research/instructions.tpl +0 -64
- package/src/experimental/research/research.test.ts +0 -263
- package/src/session/tools.ts +0 -117
- package/src/session/version-pin.test.ts +0 -26
- package/src/session/version-pin.ts +0 -49
- package/src/testing/printer.ts +0 -41
- package/src/typedefs.d.ts +0 -8
- /package/dist/types/src/{experimental/conversation → conversation}/conversation.test.d.ts +0 -0
- /package/dist/types/src/{experimental/conversation → conversation}/index.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/ast.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/combinators.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/combinators.test.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/echo-data-source.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/execution-plan.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/execution-plan.test.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/index.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/parjs.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/parser.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/query-executor.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/query-executor.test.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/schema.d.ts +0 -0
- /package/dist/types/src/{experimental/cypher → cypher}/schema.test.d.ts +0 -0
- /package/src/{experimental/conversation → conversation}/index.ts +0 -0
- /package/src/{experimental/cypher → cypher}/ast.ts +0 -0
- /package/src/{experimental/cypher → cypher}/combinators.ts +0 -0
- /package/src/{experimental/cypher → cypher}/execution-plan.ts +0 -0
- /package/src/{experimental/cypher → cypher}/index.ts +0 -0
- /package/src/{experimental/cypher → cypher}/parjs-shims.d.ts +0 -0
- /package/src/{experimental/cypher → cypher}/parjs.ts +0 -0
- /package/src/{experimental/cypher → cypher}/parser.ts +0 -0
- /package/src/{experimental/cypher → cypher}/query-executor.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-client.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/edge-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"edge-client.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/edge-client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAIzC,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEnE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;gBAEvB,EAAE,QAAQ,EAAE,EAAE,0BAA0B;IAKpD;;OAEG;IAEG,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAexD;;OAEG;IACG,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAkBhE"}
|
|
@@ -5,6 +5,9 @@ export declare class MessageCollector {
|
|
|
5
5
|
private _pendingMessage?;
|
|
6
6
|
get messages(): {
|
|
7
7
|
readonly id: string;
|
|
8
|
+
spaceId?: import("@dxos/keys").SpaceId | undefined;
|
|
9
|
+
threadId?: string | undefined;
|
|
10
|
+
foreignId?: string | undefined;
|
|
8
11
|
role: "user" | "assistant";
|
|
9
12
|
content: ({
|
|
10
13
|
pending?: boolean | undefined;
|
|
@@ -41,6 +44,9 @@ export declare class MessageCollector {
|
|
|
41
44
|
}[];
|
|
42
45
|
get pendingMessage(): {
|
|
43
46
|
readonly id: string;
|
|
47
|
+
spaceId?: import("@dxos/keys").SpaceId | undefined;
|
|
48
|
+
threadId?: string | undefined;
|
|
49
|
+
foreignId?: string | undefined;
|
|
44
50
|
role: "user" | "assistant";
|
|
45
51
|
content: ({
|
|
46
52
|
pending?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-collector.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/message-collector.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,eAAe,CAAC,CAAsB;IAE9C,IAAW,QAAQ
|
|
1
|
+
{"version":3,"file":"message-collector.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/message-collector.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,eAAe,CAAC,CAAsB;IAE9C,IAAW,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAElB;IAED,IAAW,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAExB;IAED,IAAI,CAAC,KAAK,EAAE,qBAAqB;IAkDjC,WAAW,CAAC,OAAO,EAAE,OAAO;CAG7B;AAED,wBAAiB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAQtF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Tool } from '@dxos/artifact';
|
|
2
2
|
import { type AIServiceClient, type GenerationStream } from './service';
|
|
3
|
-
import { type GenerateRequest
|
|
3
|
+
import { type GenerateRequest } from './types';
|
|
4
4
|
export type OllamaClientParams = {
|
|
5
5
|
endpoint?: string;
|
|
6
6
|
/**
|
|
@@ -34,10 +34,6 @@ export declare class OllamaClient implements AIServiceClient {
|
|
|
34
34
|
constructor({ endpoint, tools, overrides, maxToolInvocations }?: OllamaClientParams);
|
|
35
35
|
private _getEmbededTools;
|
|
36
36
|
private _generateStream;
|
|
37
|
-
|
|
38
|
-
* Generate non-streaming response.
|
|
39
|
-
*/
|
|
40
|
-
exec(request: GenerateRequest): Promise<GenerateResponse>;
|
|
41
|
-
execStream(request: GenerateRequest): Promise<GenerationStream>;
|
|
37
|
+
exec(request: GenerateRequest): Promise<GenerationStream>;
|
|
42
38
|
}
|
|
43
39
|
//# sourceMappingURL=ollama-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ollama-client.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/ollama-client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAwC,KAAK,IAAI,EAAc,MAAM,gBAAgB,CAAC;AAO7F,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAExE,OAAO,EAAa,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"ollama-client.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/ollama-client.ts"],"names":[],"mappings":"AAMA,OAAO,EAAwC,KAAK,IAAI,EAAc,MAAM,gBAAgB,CAAC;AAO7F,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAExE,OAAO,EAAa,KAAK,eAAe,EAA8B,MAAM,SAAS,CAAC;AAGtF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IAEf;;OAEG;IAEH,SAAS,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,qBAAa,YAAa,YAAW,eAAe;IAClD;;;OAGG;WACU,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAgB1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAS;IACzC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAS;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;gBAEjC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAE,kBAAuB;IAQvF,OAAO,CAAC,gBAAgB;YAST,eAAe;IAwNxB,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAgEhE"}
|
|
@@ -12,6 +12,9 @@ export declare class MixedStreamParser {
|
|
|
12
12
|
*/
|
|
13
13
|
message: Event<{
|
|
14
14
|
readonly id: string;
|
|
15
|
+
spaceId?: import("@dxos/keys").SpaceId | undefined;
|
|
16
|
+
threadId?: string | undefined;
|
|
17
|
+
foreignId?: string | undefined;
|
|
15
18
|
role: "user" | "assistant";
|
|
16
19
|
content: ({
|
|
17
20
|
pending?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/parser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,KAAK,mBAAmB,EA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CAAC"}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
import { type GenerateRequest, type GenerationStreamEvent
|
|
2
|
-
/**
|
|
3
|
-
* Interface for AI service.
|
|
4
|
-
* Generates chat completions, supports, history and tools.
|
|
5
|
-
*/
|
|
1
|
+
import { type GenerateRequest, type GenerationStreamEvent } from './types';
|
|
6
2
|
export interface AIServiceClient {
|
|
7
|
-
|
|
8
|
-
* Generate chat completions, supports, history and tools.
|
|
9
|
-
* Generate non-streaming response.
|
|
10
|
-
*/
|
|
11
|
-
exec(request: GenerateRequest): Promise<GenerateResponse>;
|
|
12
|
-
/**
|
|
13
|
-
* Generate chat completions, supports, history and tools.
|
|
14
|
-
* Process request and open message stream.
|
|
15
|
-
*/
|
|
16
|
-
execStream(request: GenerateRequest): Promise<GenerationStream>;
|
|
3
|
+
exec(request: GenerateRequest): Promise<GenerationStream>;
|
|
17
4
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Streaming chat completion stream.
|
|
20
|
-
*/
|
|
21
5
|
export interface GenerationStream extends AsyncIterable<GenerationStreamEvent> {
|
|
22
6
|
abort(): void;
|
|
23
7
|
complete(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAG3E,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,gBAAiB,SAAQ,aAAa,CAAC,qBAAqB,CAAC;IAC5E,KAAK,IAAI,IAAI,CAAC;IACd,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/stream.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD;;GAEG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/stream.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD;;GAEG;AACH,eAAO,MAAM,sBAAsB,aAAc,QAAQ,mCAAuC,gBAuC/F,CAAC;AAEF;;;GAGG;AACH,qBAAa,oBAAqB,YAAW,gBAAgB;IAYzD,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAZ/B;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAiB;IAEvC;;OAEG;IACH,OAAO,CAAC,SAAS,CAAC,CAAmD;gBAGlD,WAAW,EAAE,eAAe,EAC5B,YAAY,EAAE,MAAM,qBAAqB,CAAC,qBAAqB,CAAC;IAGnF;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,qBAAqB,CAAC;IAI9D;;OAEG;IACH,KAAK;IAIL;;OAEG;IACG,QAAQ;IAId;;OAEG;IACH,OAAO,CAAC,eAAe;CAkBxB"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { type GenerationStream, type AIServiceClient, type GenerateRequest
|
|
1
|
+
import { type GenerationStream, type AIServiceClient, type GenerateRequest } from '@dxos/assistant';
|
|
2
2
|
export declare class MockAIService implements AIServiceClient {
|
|
3
3
|
private readonly _responses;
|
|
4
4
|
constructor(_responses: string[]);
|
|
5
|
-
|
|
6
|
-
* Generate non-streaming response.
|
|
7
|
-
*/
|
|
8
|
-
exec(request: GenerateRequest): Promise<GenerateResponse>;
|
|
9
|
-
execStream(request: GenerateRequest): Promise<GenerationStream>;
|
|
5
|
+
exec(request: GenerateRequest): Promise<GenerationStream>;
|
|
10
6
|
}
|
|
11
7
|
//# sourceMappingURL=mock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../../../../src/ai-service/testing/mock.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../../../../src/ai-service/testing/mock.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EAErB,MAAM,iBAAiB,CAAC;AAIzB,qBAAa,aAAc,YAAW,eAAe;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,MAAM,EAAE;IAI3C,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-stream.d.ts","sourceRoot":"","sources":["../../../../../src/ai-service/testing/test-stream.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"test-stream.d.ts","sourceRoot":"","sources":["../../../../../src/ai-service/testing/test-stream.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,mBAAmB,SACxB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,gBACH;IAAE,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;CAAE,KACvD,cA8EF,CAAC"}
|
|
@@ -1,178 +1,135 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
1
|
+
import { Schema as S } from 'effect';
|
|
2
2
|
import { Message, type MessageContentBlock } from '@dxos/artifact';
|
|
3
|
-
import {
|
|
3
|
+
import { ObjectId } from '@dxos/echo-schema';
|
|
4
4
|
export declare const createArtifactElement: (id: ObjectId) => string;
|
|
5
|
-
export declare const LLMModel:
|
|
6
|
-
export type LLMModel =
|
|
5
|
+
export declare const LLMModel: S.Literal<["@anthropic/claude-3-5-haiku-20241022", "@anthropic/claude-3-5-sonnet-20241022", "@anthropic/claude-3-7-sonnet-20250219", "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b", "@hf/nousresearch/hermes-2-pro-mistral-7b", "@ollama/llama-3-1-nemotron-70b-instruct", "@ollama/llama-3-1-nemotron-mini-4b-instruct", "@ollama/llama-3-2-3b", "llama3.2:1b", "llama3:70b", "deepseek-r1:latest"]>;
|
|
6
|
+
export type LLMModel = S.Schema.Type<typeof LLMModel>;
|
|
7
7
|
export declare const ToolTypes: Readonly<{
|
|
8
8
|
TextToImage: "text_to_image";
|
|
9
9
|
}>;
|
|
10
10
|
/**
|
|
11
11
|
* Client GPT request.
|
|
12
12
|
*/
|
|
13
|
-
export declare const GenerateRequest:
|
|
13
|
+
export declare const GenerateRequest: S.Struct<{
|
|
14
|
+
spaceId: S.optional<S.Schema<import("@dxos/keys").SpaceId, string, never>>;
|
|
15
|
+
threadId: S.optional<import("@dxos/echo-schema").ObjectIdClass>;
|
|
14
16
|
/**
|
|
15
17
|
* Preferred model or system default.
|
|
16
18
|
*/
|
|
17
|
-
model:
|
|
19
|
+
model: S.optional<S.Literal<["@anthropic/claude-3-5-haiku-20241022", "@anthropic/claude-3-5-sonnet-20241022", "@anthropic/claude-3-7-sonnet-20250219", "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b", "@hf/nousresearch/hermes-2-pro-mistral-7b", "@ollama/llama-3-1-nemotron-70b-instruct", "@ollama/llama-3-1-nemotron-mini-4b-instruct", "@ollama/llama-3-2-3b", "llama3.2:1b", "llama3:70b", "deepseek-r1:latest"]>>;
|
|
18
20
|
/**
|
|
19
21
|
* Tools available for the LLM.
|
|
20
22
|
*/
|
|
21
|
-
tools:
|
|
22
|
-
name: typeof
|
|
23
|
-
namespace:
|
|
24
|
-
function:
|
|
25
|
-
type:
|
|
26
|
-
caption:
|
|
27
|
-
description:
|
|
28
|
-
parameters:
|
|
29
|
-
options:
|
|
23
|
+
tools: S.optional<S.mutable<S.Array$<S.Struct<{
|
|
24
|
+
name: typeof S.String;
|
|
25
|
+
namespace: S.optional<typeof S.String>;
|
|
26
|
+
function: S.optional<typeof S.String>;
|
|
27
|
+
type: S.optional<typeof S.String>;
|
|
28
|
+
caption: S.optional<typeof S.String>;
|
|
29
|
+
description: S.optional<typeof S.String>;
|
|
30
|
+
parameters: S.optional<S.Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
|
|
31
|
+
options: S.optional<typeof S.Any>;
|
|
30
32
|
}>>>>;
|
|
31
33
|
/**
|
|
32
34
|
* System instructions to the LLM.
|
|
33
35
|
*/
|
|
34
|
-
systemPrompt:
|
|
36
|
+
systemPrompt: S.optional<typeof S.String>;
|
|
35
37
|
/**
|
|
36
38
|
* History of messages to include in the context window.
|
|
37
39
|
*/
|
|
38
|
-
history:
|
|
40
|
+
history: S.optional<S.Array$<import("@dxos/echo-schema").EchoObjectSchema<S.Struct<{
|
|
39
41
|
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
42
|
+
spaceId: S.optional<S.Schema<import("@dxos/keys").SpaceId, string, never>>;
|
|
43
|
+
threadId: S.optional<import("@dxos/echo-schema").ObjectIdClass>;
|
|
44
|
+
foreignId: S.optional<typeof S.String>;
|
|
45
|
+
role: S.refine<"user" | "assistant", S.Schema<string, string, never>>;
|
|
46
|
+
content: S.mutable<S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
47
|
+
pending: S.optional<typeof S.Boolean>;
|
|
48
|
+
}>, S.Struct<{
|
|
49
|
+
type: S.Literal<["text"]>;
|
|
50
|
+
disposition: S.optional<typeof S.String>;
|
|
51
|
+
text: typeof S.String;
|
|
52
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
53
|
+
pending: S.optional<typeof S.Boolean>;
|
|
54
|
+
}>, S.Struct<{
|
|
55
|
+
type: S.Literal<["json"]>;
|
|
56
|
+
disposition: S.optional<typeof S.String>;
|
|
57
|
+
json: typeof S.String;
|
|
58
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
59
|
+
pending: S.optional<typeof S.Boolean>;
|
|
60
|
+
}>, S.Struct<{
|
|
61
|
+
type: S.Literal<["image"]>;
|
|
62
|
+
id: S.optional<typeof S.String>;
|
|
63
|
+
source: S.optional<S.mutable<S.Struct<{
|
|
64
|
+
type: S.Literal<["base64"]>;
|
|
65
|
+
mediaType: typeof S.String;
|
|
66
|
+
data: typeof S.String;
|
|
62
67
|
}>>>;
|
|
63
|
-
}>>>,
|
|
64
|
-
pending:
|
|
65
|
-
}>,
|
|
66
|
-
type:
|
|
67
|
-
id: typeof
|
|
68
|
-
name: typeof
|
|
69
|
-
input: typeof
|
|
70
|
-
}>>>,
|
|
71
|
-
pending:
|
|
72
|
-
}>,
|
|
73
|
-
type:
|
|
74
|
-
toolUseId: typeof
|
|
75
|
-
content: typeof
|
|
76
|
-
isError:
|
|
68
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
69
|
+
pending: S.optional<typeof S.Boolean>;
|
|
70
|
+
}>, S.Struct<{
|
|
71
|
+
type: S.Literal<["tool_use"]>;
|
|
72
|
+
id: typeof S.String;
|
|
73
|
+
name: typeof S.String;
|
|
74
|
+
input: typeof S.Unknown;
|
|
75
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
76
|
+
pending: S.optional<typeof S.Boolean>;
|
|
77
|
+
}>, S.Struct<{
|
|
78
|
+
type: S.Literal<["tool_result"]>;
|
|
79
|
+
toolUseId: typeof S.String;
|
|
80
|
+
content: typeof S.String;
|
|
81
|
+
isError: S.optional<typeof S.Boolean>;
|
|
77
82
|
}>>>]>>>;
|
|
78
|
-
}
|
|
83
|
+
}>>>>;
|
|
79
84
|
/**
|
|
80
85
|
* Current request.
|
|
81
86
|
*/
|
|
82
|
-
prompt:
|
|
87
|
+
prompt: S.optional<import("@dxos/echo-schema").EchoObjectSchema<S.Struct<{
|
|
83
88
|
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
89
|
+
spaceId: S.optional<S.Schema<import("@dxos/keys").SpaceId, string, never>>;
|
|
90
|
+
threadId: S.optional<import("@dxos/echo-schema").ObjectIdClass>;
|
|
91
|
+
foreignId: S.optional<typeof S.String>;
|
|
92
|
+
role: S.refine<"user" | "assistant", S.Schema<string, string, never>>;
|
|
93
|
+
content: S.mutable<S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
94
|
+
pending: S.optional<typeof S.Boolean>;
|
|
95
|
+
}>, S.Struct<{
|
|
96
|
+
type: S.Literal<["text"]>;
|
|
97
|
+
disposition: S.optional<typeof S.String>;
|
|
98
|
+
text: typeof S.String;
|
|
99
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
100
|
+
pending: S.optional<typeof S.Boolean>;
|
|
101
|
+
}>, S.Struct<{
|
|
102
|
+
type: S.Literal<["json"]>;
|
|
103
|
+
disposition: S.optional<typeof S.String>;
|
|
104
|
+
json: typeof S.String;
|
|
105
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
106
|
+
pending: S.optional<typeof S.Boolean>;
|
|
107
|
+
}>, S.Struct<{
|
|
108
|
+
type: S.Literal<["image"]>;
|
|
109
|
+
id: S.optional<typeof S.String>;
|
|
110
|
+
source: S.optional<S.mutable<S.Struct<{
|
|
111
|
+
type: S.Literal<["base64"]>;
|
|
112
|
+
mediaType: typeof S.String;
|
|
113
|
+
data: typeof S.String;
|
|
106
114
|
}>>>;
|
|
107
|
-
}>>>,
|
|
108
|
-
pending:
|
|
109
|
-
}>,
|
|
110
|
-
type:
|
|
111
|
-
id: typeof
|
|
112
|
-
name: typeof
|
|
113
|
-
input: typeof
|
|
114
|
-
}>>>,
|
|
115
|
-
pending:
|
|
116
|
-
}>,
|
|
117
|
-
type:
|
|
118
|
-
toolUseId: typeof
|
|
119
|
-
content: typeof
|
|
120
|
-
isError:
|
|
115
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
116
|
+
pending: S.optional<typeof S.Boolean>;
|
|
117
|
+
}>, S.Struct<{
|
|
118
|
+
type: S.Literal<["tool_use"]>;
|
|
119
|
+
id: typeof S.String;
|
|
120
|
+
name: typeof S.String;
|
|
121
|
+
input: typeof S.Unknown;
|
|
122
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
123
|
+
pending: S.optional<typeof S.Boolean>;
|
|
124
|
+
}>, S.Struct<{
|
|
125
|
+
type: S.Literal<["tool_result"]>;
|
|
126
|
+
toolUseId: typeof S.String;
|
|
127
|
+
content: typeof S.String;
|
|
128
|
+
isError: S.optional<typeof S.Boolean>;
|
|
121
129
|
}>>>]>>>;
|
|
122
|
-
}
|
|
123
|
-
}>;
|
|
124
|
-
export type GenerateRequest = Schema.Schema.Type<typeof GenerateRequest>;
|
|
125
|
-
/**
|
|
126
|
-
* Non-streaming response.
|
|
127
|
-
*/
|
|
128
|
-
export declare const GenerateResponse: Schema.Struct<{
|
|
129
|
-
messages: Schema.Array$<import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
|
|
130
|
-
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
131
|
-
role: Schema.refine<"user" | "assistant", Schema.Schema<string, string, never>>;
|
|
132
|
-
content: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.extend<Schema.Struct<{
|
|
133
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
134
|
-
}>, Schema.Struct<{
|
|
135
|
-
type: Schema.Literal<["text"]>;
|
|
136
|
-
disposition: Schema.optional<typeof Schema.String>;
|
|
137
|
-
text: typeof Schema.String;
|
|
138
|
-
}>>>, Schema.mutable<Schema.extend<Schema.Struct<{
|
|
139
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
140
|
-
}>, Schema.Struct<{
|
|
141
|
-
type: Schema.Literal<["json"]>;
|
|
142
|
-
disposition: Schema.optional<typeof Schema.String>;
|
|
143
|
-
json: typeof Schema.String;
|
|
144
|
-
}>>>, Schema.mutable<Schema.extend<Schema.Struct<{
|
|
145
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
146
|
-
}>, Schema.Struct<{
|
|
147
|
-
type: Schema.Literal<["image"]>;
|
|
148
|
-
id: Schema.optional<typeof Schema.String>;
|
|
149
|
-
source: Schema.optional<Schema.mutable<Schema.Struct<{
|
|
150
|
-
type: Schema.Literal<["base64"]>;
|
|
151
|
-
mediaType: typeof Schema.String;
|
|
152
|
-
data: typeof Schema.String;
|
|
153
|
-
}>>>;
|
|
154
|
-
}>>>, Schema.mutable<Schema.extend<Schema.Struct<{
|
|
155
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
156
|
-
}>, Schema.Struct<{
|
|
157
|
-
type: Schema.Literal<["tool_use"]>;
|
|
158
|
-
id: typeof Schema.String;
|
|
159
|
-
name: typeof Schema.String;
|
|
160
|
-
input: typeof Schema.Unknown;
|
|
161
|
-
}>>>, Schema.mutable<Schema.extend<Schema.Struct<{
|
|
162
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
163
|
-
}>, Schema.Struct<{
|
|
164
|
-
type: Schema.Literal<["tool_result"]>;
|
|
165
|
-
toolUseId: typeof Schema.String;
|
|
166
|
-
content: typeof Schema.String;
|
|
167
|
-
isError: Schema.optional<typeof Schema.Boolean>;
|
|
168
|
-
}>>>]>>>;
|
|
169
|
-
}>, {}>>;
|
|
170
|
-
/**
|
|
171
|
-
* Number of tokens used in the response.
|
|
172
|
-
*/
|
|
173
|
-
tokenCount: Schema.optional<typeof Schema.Number>;
|
|
130
|
+
}>>>;
|
|
174
131
|
}>;
|
|
175
|
-
export type
|
|
132
|
+
export type GenerateRequest = S.Schema.Type<typeof GenerateRequest>;
|
|
176
133
|
/**
|
|
177
134
|
* Server-Sent Events (SSE) stream from the AI service.
|
|
178
135
|
* https://docs.anthropic.com/en/api/streaming
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ai-service/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;AAErC,OAAO,EAAQ,OAAO,EAAE,KAAK,mBAAmB,EAAiB,MAAM,gBAAgB,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI7C,eAAO,MAAM,qBAAqB,OAAQ,QAAQ,WAA4B,CAAC;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,MAAM,CAAC;IACd,OAAO,EAAE,mBAAmB,CAAC;CAC9B,GACD;IACE,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EACD;QACE,IAAI,EAAE,YAAY,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,IAAI,EAAE,kBAAkB,CAAC;QACzB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACP,GACD;IACE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../../../../src/ai-service/util/sse.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAuB,eAAe,CACpC,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,eAAe,GAC1B,cAAc,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAyBhD;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AA8HF,uEAAuE;AACvE,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../../../../src/ai-service/util/sse.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAuB,eAAe,CACpC,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,eAAe,GAC1B,cAAc,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,CAyBhD;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,EAAE,CAAC;CACf,CAAC;AA8HF,uEAAuE;AACvE,eAAO,MAAM,aAAa,WAAY,MAAM,EAAE,KAAG,MAAM,EAQtD,CAAC;AAWF;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,qBAAqB,CAAC,CAAC,CAAC,CA6BpF;AAED,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAElF;;;;;GAKG;AACH,qBAAa,WAAW;IAEtB,MAAM,CAAC,aAAa,cAAyB;IAC7C,MAAM,CAAC,cAAc,SAAkB;IAEvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,GAAG,CAAC;;IAOjB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE;IA0C9B,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;IAuChC,KAAK,IAAI,MAAM,EAAE;CAUlB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Tool, Message } from '@dxos/artifact';
|
|
2
2
|
import { ObjectId } from '@dxos/echo-schema';
|
|
3
3
|
import { type SpaceId } from '@dxos/keys';
|
|
4
|
-
import { type AIServiceClient, type GenerationStreamEvent, type LLMModel } from '
|
|
4
|
+
import { type AIServiceClient, type GenerationStreamEvent, type LLMModel } from '../ai-service';
|
|
5
5
|
export type CreateLLMConversationParams = {
|
|
6
6
|
model: LLMModel;
|
|
7
7
|
spaceId?: SpaceId;
|
|
@@ -23,6 +23,9 @@ export declare const runLLM: (params: CreateLLMConversationParams) => Promise<{
|
|
|
23
23
|
result: any;
|
|
24
24
|
history: {
|
|
25
25
|
readonly id: string;
|
|
26
|
+
spaceId?: SpaceId | undefined;
|
|
27
|
+
threadId?: string | undefined;
|
|
28
|
+
foreignId?: string | undefined;
|
|
26
29
|
role: "user" | "assistant";
|
|
27
30
|
content: ({
|
|
28
31
|
pending?: boolean | undefined;
|
|
@@ -58,4 +61,20 @@ export declare const runLLM: (params: CreateLLMConversationParams) => Promise<{
|
|
|
58
61
|
})[];
|
|
59
62
|
}[];
|
|
60
63
|
}>;
|
|
64
|
+
export declare const isToolUse: (message: Message, { onlyToolNames }?: {
|
|
65
|
+
onlyToolNames?: string[];
|
|
66
|
+
}) => boolean;
|
|
67
|
+
export type RunToolsOptions = {
|
|
68
|
+
message: Message;
|
|
69
|
+
tools: Tool[];
|
|
70
|
+
extensions?: ToolContextExtensions;
|
|
71
|
+
};
|
|
72
|
+
export type RunToolsResult = {
|
|
73
|
+
type: 'continue';
|
|
74
|
+
message: Message;
|
|
75
|
+
} | {
|
|
76
|
+
type: 'break';
|
|
77
|
+
result: unknown;
|
|
78
|
+
};
|
|
79
|
+
export declare const runTools: ({ message, tools, extensions }: RunToolsOptions) => Promise<RunToolsResult>;
|
|
61
80
|
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../src/conversation/conversation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAc,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAgB,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,qBAAqB,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEhG,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,QAAQ,CAAC;IAEhB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IAExB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GACzB;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,GACD,qBAAqB,CAAC;AAG1B,eAAO,MAAM,MAAM,WAAkB,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6G/D,CAAC;AAEF,eAAO,MAAM,SAAS,YAAa,OAAO,sBAAqB;IAAE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,YAI1F,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,cAAc,GACtB;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEN,eAAO,MAAM,QAAQ,mCAA0C,eAAe,KAAG,OAAO,CAAC,cAAc,CAqFtG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation.test.d.ts","sourceRoot":"","sources":["../../../../src/conversation/conversation.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/conversation/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
1
|
+
import { Schema as S } from 'effect';
|
|
2
2
|
import { type Message, type MessageContentBlock } from '@dxos/artifact';
|
|
3
|
-
import { JsonSchemaType } from '@dxos/echo-schema';
|
|
4
|
-
|
|
3
|
+
import { JsonSchemaType, ObjectId } from '@dxos/echo-schema';
|
|
4
|
+
import type { SpaceId } from '@dxos/keys';
|
|
5
|
+
export declare const createUserMessage: (spaceId: SpaceId, threadId: ObjectId, text: string) => Message;
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated Use {@link LLMTool} instead.
|
|
7
8
|
*/
|
|
8
|
-
export declare const ToolDefinition:
|
|
9
|
-
name: typeof
|
|
10
|
-
description: typeof
|
|
11
|
-
parameters:
|
|
12
|
-
execute: typeof
|
|
9
|
+
export declare const ToolDefinition: S.Struct<{
|
|
10
|
+
name: typeof S.String;
|
|
11
|
+
description: typeof S.String;
|
|
12
|
+
parameters: S.Schema<JsonSchemaType, JsonSchemaType, never>;
|
|
13
|
+
execute: typeof S.Any;
|
|
13
14
|
}>;
|
|
14
15
|
/**
|
|
15
16
|
* @deprecated Use {@link LLMTool} instead.
|
|
@@ -68,11 +69,11 @@ export declare const ToolResult: Readonly<{
|
|
|
68
69
|
*/
|
|
69
70
|
Break: (result: unknown) => ToolResult;
|
|
70
71
|
}>;
|
|
71
|
-
export type DefineToolParams<Params extends
|
|
72
|
+
export type DefineToolParams<Params extends S.Schema.AnyNoContext> = {
|
|
72
73
|
name: string;
|
|
73
74
|
description: string;
|
|
74
75
|
schema: Params;
|
|
75
|
-
execute: (params:
|
|
76
|
+
execute: (params: S.Schema.Type<Params>, context: ToolExecutionContext) => Promise<ToolResult>;
|
|
76
77
|
};
|
|
77
|
-
export declare const defineTool: <Params extends
|
|
78
|
+
export declare const defineTool: <Params extends S.Schema.AnyNoContext>({ name, description, schema, execute, }: DefineToolParams<Params>) => ToolDefinition;
|
|
78
79
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/conversation/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,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OA,OAAO,KAAK,EACV,WAAW,EAEX,YAAY,EAEZ,UAAU,EACV,WAAW,EAEX,WAAW,EACX,UAAU,EACV,QAAQ,EACR,mBAAmB,EACnB,YAAY,EAEZ,WAAW,EACZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,OAAO,EAA2B,MAAM,SAAS,CAAC;AAgB3D,eAAO,MAAM,UAAU,qBAEtB,CAAC;AAUF,eAAO,MAAM,KAAK,qBAAwD,CAAC;AAC3E,eAAO,MAAM,QAAQ,mBAGpB,CAAC;AACF,eAAO,MAAM,UAAU,qBAItB,CAAC;AACF,eAAO,MAAM,WAAW,sBAQvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,8BAa/B,CAAC;AAOF,eAAO,MAAM,YAAY,uBAIxB,CAAC;AAEF,eAAO,MAAM,WAAW,sBAIvB,CAAC;AAYF,eAAO,MAAM,WAAW,sBAOvB,CAAC;AAEF,eAAO,MAAM,YAAY,uBAaxB,CAAC;AAEF,eAAO,MAAM,WAAW,sBAUvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combinators.test.d.ts","sourceRoot":"","sources":["../../../../src/cypher/combinators.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"echo-data-source.d.ts","sourceRoot":"","sources":["../../../../src/cypher/echo-data-source.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAmC,MAAM,eAAe,CAAC;AAKnF,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGvE,qBAAa,cAAe,YAAW,UAAU;IACnC,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,YAAY;IAGxC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAiBx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I,EAAE,QAAQ,CAAC;KAChB,EAAE,CAAC;CACL,CAAC;AAEN,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,WAAW,KAAG,aAExD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-plan.test.d.ts","sourceRoot":"","sources":["../../../../src/cypher/execution-plan.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cypher/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parjs.d.ts","sourceRoot":"","sources":["../../../../src/cypher/parjs.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAEjD,OAAO,EAAE,KAAK,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/cypher/parser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,WAAW,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,MAAM,KAAG,WAOhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-execut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