@dxos/assistant 0.8.4-main.84f28bd → 0.8.4-main.9735255
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-7CDDG6LL.mjs +578 -0
- package/dist/lib/browser/chunk-7CDDG6LL.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/extraction/index.mjs +225 -0
- package/dist/lib/browser/extraction/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +723 -1892
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +32 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs +579 -0
- package/dist/lib/node-esm/chunk-CC7ER6Q3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/extraction/index.mjs +226 -0
- package/dist/lib/node-esm/extraction/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +723 -1893
- 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 +33 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/types/src/conversation/context.d.ts +129 -0
- package/dist/types/src/conversation/context.d.ts.map +1 -0
- package/dist/types/src/conversation/context.test.d.ts +2 -0
- package/dist/types/src/conversation/context.test.d.ts.map +1 -0
- package/dist/types/src/conversation/conversation.d.ts +29 -32
- package/dist/types/src/conversation/conversation.d.ts.map +1 -1
- package/dist/types/src/conversation/conversation.test.d.ts +2 -0
- package/dist/types/src/conversation/conversation.test.d.ts.map +1 -0
- package/dist/types/src/conversation/index.d.ts +1 -0
- package/dist/types/src/conversation/index.d.ts.map +1 -1
- package/dist/types/src/diff.d.ts +15 -0
- package/dist/types/src/diff.d.ts.map +1 -0
- package/dist/types/src/diff.test.d.ts +2 -0
- package/dist/types/src/diff.test.d.ts.map +1 -0
- package/dist/types/src/errors.d.ts +67 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/execution-graph.d.ts +85 -0
- package/dist/types/src/execution-graph.d.ts.map +1 -0
- package/dist/types/src/execution-graph.test.d.ts +2 -0
- package/dist/types/src/execution-graph.test.d.ts.map +1 -0
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts +1 -1
- package/dist/types/src/extraction/extraction-llm-function/extraction-llm-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts +279 -140
- package/dist/types/src/extraction/extraction-ner-function/extraction-ner-function.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts +1 -1
- package/dist/types/src/extraction/extraction-ner-function/named-entity-recognition.d.ts.map +1 -1
- package/dist/types/src/extraction/extraction.d.ts +345 -212
- package/dist/types/src/extraction/extraction.d.ts.map +1 -1
- package/dist/types/src/extraction/quotes.d.ts +3 -3
- package/dist/types/src/extraction/quotes.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +2 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/functions/services.d.ts +20 -0
- package/dist/types/src/functions/services.d.ts.map +1 -0
- package/dist/types/src/functions.test.d.ts +2 -0
- package/dist/types/src/functions.test.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +5 -5
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/session/GenericToolkit.d.ts +85 -0
- package/dist/types/src/session/GenericToolkit.d.ts.map +1 -0
- package/dist/types/src/session/artifact-diff.d.ts +27 -0
- package/dist/types/src/session/artifact-diff.d.ts.map +1 -0
- package/dist/types/src/session/error-handling.d.ts +4 -0
- package/dist/types/src/session/error-handling.d.ts.map +1 -0
- package/dist/types/src/session/format.d.ts +12 -0
- package/dist/types/src/session/format.d.ts.map +1 -0
- package/dist/types/src/session/format.test.d.ts +2 -0
- package/dist/types/src/session/format.test.d.ts.map +1 -0
- package/dist/types/src/session/index.d.ts +4 -0
- package/dist/types/src/session/index.d.ts.map +1 -1
- package/dist/types/src/session/observer.d.ts +23 -0
- package/dist/types/src/session/observer.d.ts.map +1 -0
- package/dist/types/src/session/session.d.ts +41 -268
- package/dist/types/src/session/session.d.ts.map +1 -1
- package/dist/types/src/session/toolkit.d.ts +14 -0
- package/dist/types/src/session/toolkit.d.ts.map +1 -0
- package/dist/types/src/session/version-pin.d.ts +5 -5
- package/dist/types/src/session/version-pin.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +2 -0
- package/dist/types/src/templates/index.d.ts.map +1 -0
- package/dist/types/src/templates/system.d.ts +18 -0
- package/dist/types/src/templates/system.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -2
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/layer.d.ts +21 -0
- package/dist/types/src/testing/layer.d.ts.map +1 -0
- package/dist/types/src/types/artifact.d.ts +28 -0
- package/dist/types/src/types/artifact.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +58 -27
- package/src/conversation/context.test.ts +46 -0
- package/src/conversation/context.ts +303 -0
- package/src/conversation/conversation.test.ts +65 -0
- package/src/conversation/conversation.ts +98 -76
- package/src/conversation/index.ts +1 -0
- package/src/diff.test.ts +43 -0
- package/src/diff.ts +84 -0
- package/src/errors.ts +15 -0
- package/src/execution-graph.test.ts +740 -0
- package/src/execution-graph.ts +509 -0
- package/src/extraction/extraction-llm-function/extraction-llm-function.test.ts +14 -25
- package/src/extraction/extraction-llm-function/extraction-llm-function.ts +48 -52
- package/src/extraction/extraction-ner-function/extraction-ner-function.test.ts +22 -21
- package/src/extraction/extraction-ner-function/extraction-ner-function.ts +43 -41
- package/src/extraction/extraction-ner-function/named-entity-recognition.test.ts +12 -6
- package/src/extraction/extraction-ner-function/named-entity-recognition.ts +3 -1
- package/src/extraction/extraction.ts +10 -9
- package/src/extraction/quotes.test.ts +3 -3
- package/src/extraction/quotes.ts +6 -7
- package/src/functions/index.ts +5 -0
- package/src/functions/services.ts +180 -0
- package/src/functions.conversations.json +1 -0
- package/src/functions.test.ts +74 -0
- package/src/index.ts +5 -5
- package/src/session/GenericToolkit.ts +131 -0
- package/src/session/artifact-diff.ts +41 -0
- package/src/session/error-handling.ts +41 -0
- package/src/session/format.test.ts +124 -0
- package/src/session/format.ts +143 -0
- package/src/session/index.ts +5 -0
- package/src/session/observer.ts +61 -0
- package/src/session/session.conversations.json +1 -0
- package/src/session/session.test.ts +83 -215
- package/src/session/session.ts +181 -529
- package/src/session/toolkit.ts +39 -0
- package/src/session/version-pin.ts +12 -12
- package/src/templates/index.ts +5 -0
- package/src/templates/instructions/format.tpl +61 -0
- package/src/templates/instructions/system.tpl +48 -0
- package/src/templates/system.ts +41 -0
- package/src/testing/index.ts +2 -8
- package/src/testing/layer.ts +78 -0
- package/src/types/artifact.ts +82 -0
- package/src/types/index.ts +5 -0
- package/src/typings.d.ts +5 -0
- package/dist/types/bin/chat.d.ts +0 -2
- package/dist/types/bin/chat.d.ts.map +0 -1
- package/dist/types/src/blueprint/blueprint.d.ts +0 -41
- package/dist/types/src/blueprint/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprint/index.d.ts +0 -3
- package/dist/types/src/blueprint/index.d.ts.map +0 -1
- package/dist/types/src/blueprint/registry.d.ts +0 -7
- package/dist/types/src/blueprint/registry.d.ts.map +0 -1
- package/dist/types/src/context/binder.d.ts +0 -34
- package/dist/types/src/context/binder.d.ts.map +0 -1
- package/dist/types/src/context/binding.d.ts +0 -38
- package/dist/types/src/context/binding.d.ts.map +0 -1
- package/dist/types/src/context/index.d.ts +0 -3
- package/dist/types/src/context/index.d.ts.map +0 -1
- package/dist/types/src/research/exa.d.ts +0 -7
- package/dist/types/src/research/exa.d.ts.map +0 -1
- package/dist/types/src/research/graph.d.ts +0 -41
- package/dist/types/src/research/graph.d.ts.map +0 -1
- package/dist/types/src/research/graph.test.d.ts +0 -2
- package/dist/types/src/research/graph.test.d.ts.map +0 -1
- package/dist/types/src/research/index.d.ts +0 -4
- package/dist/types/src/research/index.d.ts.map +0 -1
- package/dist/types/src/research/research.d.ts +0 -10
- package/dist/types/src/research/research.d.ts.map +0 -1
- package/dist/types/src/research/research.test.d.ts +0 -2
- package/dist/types/src/research/research.test.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/summarization/summarization.test.d.ts +0 -2
- package/dist/types/src/summarization/summarization.test.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337321991.d.ts +0 -38
- package/dist/types/src/testing/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337331526.d.ts +0 -37
- package/dist/types/src/testing/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/testing/exa-search-1748337344119.d.ts +0 -58
- package/dist/types/src/testing/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -3
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/blueprint/blueprint.ts +0 -75
- package/src/blueprint/index.ts +0 -6
- package/src/blueprint/registry.ts +0 -15
- package/src/context/binder.ts +0 -101
- package/src/context/binding.ts +0 -31
- package/src/context/index.ts +0 -6
- package/src/research/exa.ts +0 -100
- package/src/research/graph.test.ts +0 -15
- package/src/research/graph.ts +0 -337
- package/src/research/index.ts +0 -7
- package/src/research/instructions-research.tpl +0 -97
- package/src/research/research.test.ts +0 -190
- package/src/research/research.ts +0 -90
- package/src/session/version-pin.test.ts +0 -26
- package/src/summarization/summarization.test.ts +0 -221
- package/src/testing/exa-search-1748337321991.ts +0 -131
- package/src/testing/exa-search-1748337331526.ts +0 -144
- package/src/testing/exa-search-1748337344119.ts +0 -133
- package/src/typedefs.d.ts +0 -8
- package/src/types.ts +0 -8
- /package/src/extraction/extraction-llm-function/{instructions.tpl → transcription-instructions.tpl} +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type Entity } from '@dxos/echo';
|
|
2
|
+
import { LogLevel } from '@dxos/log';
|
|
3
|
+
import { ContentBlock } from '@dxos/types';
|
|
4
|
+
/**
|
|
5
|
+
* Mercurial-style Commit.
|
|
6
|
+
*/
|
|
7
|
+
export type Commit = {
|
|
8
|
+
id: string;
|
|
9
|
+
parents: string[];
|
|
10
|
+
branch: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
level?: LogLevel;
|
|
13
|
+
message: string;
|
|
14
|
+
timestamp?: Date;
|
|
15
|
+
tags?: string[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Models the execution graph based on a stream of events.
|
|
19
|
+
*/
|
|
20
|
+
export declare class ExecutionGraph {
|
|
21
|
+
private readonly _skipBlocks;
|
|
22
|
+
private _commits;
|
|
23
|
+
private _branchNames;
|
|
24
|
+
private _lastBlockId;
|
|
25
|
+
private _toolCallCommitIds;
|
|
26
|
+
private _lastCommitByBranch;
|
|
27
|
+
private _pendingToolResults;
|
|
28
|
+
constructor(_skipBlocks?: ContentBlock.Any['_tag'][]);
|
|
29
|
+
/**
|
|
30
|
+
* Adds events to the graph.
|
|
31
|
+
*/
|
|
32
|
+
addEvents(events: Entity.Unknown[]): void;
|
|
33
|
+
/**
|
|
34
|
+
* Processes a message event and creates commits for its blocks.
|
|
35
|
+
*/
|
|
36
|
+
private _processMessage;
|
|
37
|
+
/**
|
|
38
|
+
* Processes an AgentStatus event.
|
|
39
|
+
*/
|
|
40
|
+
private _processAgentStatus;
|
|
41
|
+
/**
|
|
42
|
+
* Stable sort: objects with 'created' field are sorted by it, others remain in place.
|
|
43
|
+
*/
|
|
44
|
+
private sortObjectsByCreated;
|
|
45
|
+
/**
|
|
46
|
+
* Returns the current state of the graph.
|
|
47
|
+
*/
|
|
48
|
+
getGraph(lastRequest?: boolean): {
|
|
49
|
+
branches: string[];
|
|
50
|
+
commits: Commit[];
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Tracks tool calls and handles pending tool result updates.
|
|
54
|
+
*/
|
|
55
|
+
private _trackToolCalls;
|
|
56
|
+
/**
|
|
57
|
+
* Updates pending tool results to point to an AgentStatus event.
|
|
58
|
+
*/
|
|
59
|
+
private _updatePendingToolResults;
|
|
60
|
+
/**
|
|
61
|
+
* Handles late updates when AgentStatus is processed before tool result.
|
|
62
|
+
*/
|
|
63
|
+
private _handleLateToolResultUpdate;
|
|
64
|
+
/**
|
|
65
|
+
* Gets the branch name for a tool call.
|
|
66
|
+
*/
|
|
67
|
+
private _getToolCallBranch;
|
|
68
|
+
/**
|
|
69
|
+
* Gets the parents for an AgentStatus commit.
|
|
70
|
+
*/
|
|
71
|
+
private _getAgentStatusParents;
|
|
72
|
+
/**
|
|
73
|
+
* Checks if a commit is a tool call commit.
|
|
74
|
+
*/
|
|
75
|
+
private _isToolCallCommit;
|
|
76
|
+
/**
|
|
77
|
+
* Checks if a commit is a tool result commit.
|
|
78
|
+
*/
|
|
79
|
+
private _isToolResultCommit;
|
|
80
|
+
/**
|
|
81
|
+
* Extracts tool call ID from a commit ID.
|
|
82
|
+
*/
|
|
83
|
+
private _extractToolCallId;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=execution-graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-graph.d.ts","sourceRoot":"","sources":["../../../src/execution-graph.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,MAAM,EAAiB,MAAM,YAAY,CAAC;AAGxD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,YAAY,EAAW,MAAM,aAAa,CAAC;AAKpD;;GAEG;AAEH,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAqBF;;GAEG;AACH,qBAAa,cAAc;IAWb,OAAO,CAAC,QAAQ,CAAC,WAAW;IATxC,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,YAAY,CAAqB;IAGzC,OAAO,CAAC,kBAAkB,CAA6B;IACvD,OAAO,CAAC,mBAAmB,CAA6B;IACxD,OAAO,CAAC,mBAAmB,CAA6B;gBAE3B,WAAW,GAAE,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAgB;IAElF;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;IAWlC;;OAEG;IACH,OAAO,CAAC,eAAe;IAsBvB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyB3B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAyB5B;;OAEG;IACH,QAAQ,CAAC,WAAW,UAAQ,GAAG;QAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE;IAUxE;;OAEG;IACH,OAAO,CAAC,eAAe;IAqBvB;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAmBjC;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAoBnC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAO1B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAO9B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAK3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-graph.test.d.ts","sourceRoot":"","sources":["../../../src/execution-graph.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type FunctionDefinition } from '@dxos/functions';
|
|
2
2
|
import { ExtractionInput, ExtractionOutput } from '../extraction';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const extractionAnthropicFunction: FunctionDefinition<ExtractionInput, ExtractionOutput>;
|
|
4
4
|
//# sourceMappingURL=extraction-llm-function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-llm-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-llm-function/extraction-llm-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extraction-llm-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-llm-function/extraction-llm-function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAkB,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAElE,eAAO,MAAM,2BAA2B,EAAE,kBAAkB,CAAC,eAAe,EAAE,gBAAgB,CAqD5F,CAAC"}
|
|
@@ -1,45 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Named Entity Recognition model
|
|
3
|
+
*/
|
|
4
|
+
export declare const extractionNerFunction: import("@dxos/functions").FunctionDefinition<{
|
|
5
|
+
readonly options?: {
|
|
6
|
+
readonly timeout?: number | undefined;
|
|
7
|
+
readonly fallbackToRaw?: boolean | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly parentMessage?: string | undefined;
|
|
12
|
+
readonly created: string;
|
|
13
|
+
readonly sender: {
|
|
14
|
+
readonly name?: string | undefined;
|
|
15
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
16
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
17
|
+
readonly image?: string | undefined;
|
|
18
|
+
readonly fullName?: string | undefined;
|
|
19
|
+
readonly preferredName?: string | undefined;
|
|
20
|
+
readonly nickname?: string | undefined;
|
|
21
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
+
readonly description?: string | undefined;
|
|
23
|
+
readonly name?: string | undefined;
|
|
24
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
25
|
+
readonly image?: string | undefined;
|
|
26
|
+
readonly website?: string | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
26
29
|
}> | undefined;
|
|
27
|
-
jobTitle?: string | undefined;
|
|
28
|
-
department?: string | undefined;
|
|
29
|
-
notes?: string | undefined;
|
|
30
|
-
emails?: {
|
|
30
|
+
readonly jobTitle?: string | undefined;
|
|
31
|
+
readonly department?: string | undefined;
|
|
32
|
+
readonly notes?: string | undefined;
|
|
33
|
+
readonly emails?: readonly {
|
|
31
34
|
readonly value: string;
|
|
32
35
|
readonly label?: string | undefined;
|
|
33
36
|
}[] | undefined;
|
|
34
|
-
identities?: {
|
|
37
|
+
readonly identities?: readonly {
|
|
35
38
|
readonly value: string;
|
|
36
39
|
readonly label?: string | undefined;
|
|
37
40
|
}[] | undefined;
|
|
38
|
-
phoneNumbers?: {
|
|
41
|
+
readonly phoneNumbers?: readonly {
|
|
39
42
|
readonly value: string;
|
|
40
43
|
readonly label?: string | undefined;
|
|
41
44
|
}[] | undefined;
|
|
42
|
-
|
|
45
|
+
readonly fields?: readonly {
|
|
46
|
+
readonly value: string;
|
|
47
|
+
readonly label: string;
|
|
48
|
+
readonly category?: string | undefined;
|
|
49
|
+
}[] | undefined;
|
|
50
|
+
readonly addresses?: readonly {
|
|
43
51
|
readonly value: {
|
|
44
52
|
readonly street?: string | undefined;
|
|
45
53
|
readonly extended?: string | undefined;
|
|
@@ -51,98 +59,164 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
51
59
|
};
|
|
52
60
|
readonly label?: string | undefined;
|
|
53
61
|
}[] | undefined;
|
|
54
|
-
urls?: {
|
|
62
|
+
readonly urls?: readonly {
|
|
55
63
|
readonly value: string;
|
|
56
64
|
readonly label?: string | undefined;
|
|
57
65
|
}[] | undefined;
|
|
58
|
-
birthday?: string | undefined;
|
|
66
|
+
readonly birthday?: string | undefined;
|
|
67
|
+
} & {
|
|
68
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
59
69
|
}> | undefined;
|
|
60
|
-
identityDid?: string | undefined;
|
|
61
|
-
identityKey?: string | undefined;
|
|
70
|
+
readonly identityDid?: string | undefined;
|
|
71
|
+
readonly identityKey?: string | undefined;
|
|
72
|
+
readonly email?: string | undefined;
|
|
62
73
|
};
|
|
63
|
-
blocks: ({
|
|
64
|
-
pending?: boolean | undefined;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
readonly blocks: readonly ({
|
|
75
|
+
readonly pending?: boolean | undefined;
|
|
76
|
+
readonly text: string;
|
|
77
|
+
readonly mimeType?: string | undefined;
|
|
78
|
+
readonly disposition?: string | undefined;
|
|
79
|
+
readonly _tag: "text";
|
|
80
|
+
} | {
|
|
81
|
+
readonly pending?: boolean | undefined;
|
|
82
|
+
readonly _tag: "reasoning";
|
|
83
|
+
readonly reasoningText?: string | undefined;
|
|
84
|
+
readonly redactedText?: string | undefined;
|
|
85
|
+
readonly signature?: string | undefined;
|
|
86
|
+
} | {
|
|
87
|
+
readonly name: string;
|
|
88
|
+
readonly pending?: boolean | undefined;
|
|
89
|
+
readonly _tag: "toolCall";
|
|
90
|
+
readonly toolCallId: string;
|
|
91
|
+
readonly input: string;
|
|
92
|
+
readonly providerExecuted: boolean;
|
|
93
|
+
} | {
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly pending?: boolean | undefined;
|
|
96
|
+
readonly _tag: "toolResult";
|
|
97
|
+
readonly toolCallId: string;
|
|
98
|
+
readonly providerExecuted: boolean;
|
|
99
|
+
readonly result?: string | undefined;
|
|
100
|
+
readonly error?: string | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
readonly pending?: boolean | undefined;
|
|
103
|
+
readonly mimeType?: string | undefined;
|
|
104
|
+
readonly _tag: "summary";
|
|
105
|
+
readonly message?: string | undefined;
|
|
106
|
+
readonly model?: string | undefined;
|
|
107
|
+
readonly usage?: {
|
|
108
|
+
readonly inputTokens?: number | undefined;
|
|
109
|
+
readonly outputTokens?: number | undefined;
|
|
110
|
+
readonly totalTokens?: number | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
readonly toolCalls?: number | undefined;
|
|
113
|
+
readonly errors?: number | undefined;
|
|
114
|
+
readonly duration?: number | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
readonly source?: {
|
|
117
|
+
readonly type: "base64";
|
|
118
|
+
readonly mediaType: string;
|
|
119
|
+
readonly data: string;
|
|
81
120
|
} | {
|
|
82
|
-
type: "http";
|
|
83
|
-
url: string;
|
|
121
|
+
readonly type: "http";
|
|
122
|
+
readonly url: string;
|
|
84
123
|
} | undefined;
|
|
124
|
+
readonly id?: string | undefined;
|
|
125
|
+
readonly pending?: boolean | undefined;
|
|
126
|
+
readonly _tag: "image";
|
|
127
|
+
} | {
|
|
128
|
+
readonly name?: string | undefined;
|
|
129
|
+
readonly pending?: boolean | undefined;
|
|
130
|
+
readonly _tag: "file";
|
|
131
|
+
readonly mediaType?: string | undefined;
|
|
132
|
+
readonly url: string;
|
|
133
|
+
} | {
|
|
134
|
+
readonly pending?: boolean | undefined;
|
|
135
|
+
readonly _tag: "reference";
|
|
136
|
+
readonly reference: import("@dxos/echo/internal").Ref<any>;
|
|
137
|
+
} | {
|
|
138
|
+
readonly pending?: boolean | undefined;
|
|
139
|
+
readonly text: string;
|
|
140
|
+
readonly _tag: "transcript";
|
|
141
|
+
readonly started: string;
|
|
142
|
+
} | {
|
|
143
|
+
readonly pending?: boolean | undefined;
|
|
144
|
+
readonly _tag: "status";
|
|
145
|
+
readonly statusText: string;
|
|
146
|
+
} | {
|
|
147
|
+
readonly pending?: boolean | undefined;
|
|
148
|
+
readonly text: string;
|
|
149
|
+
readonly _tag: "suggestion";
|
|
150
|
+
} | {
|
|
151
|
+
readonly pending?: boolean | undefined;
|
|
152
|
+
readonly _tag: "select";
|
|
153
|
+
readonly options: string[];
|
|
154
|
+
} | {
|
|
155
|
+
readonly version: unknown;
|
|
156
|
+
readonly pending?: boolean | undefined;
|
|
157
|
+
readonly _tag: "anchor";
|
|
158
|
+
readonly objectId: string;
|
|
159
|
+
} | {
|
|
160
|
+
readonly pending?: boolean | undefined;
|
|
161
|
+
readonly text: string;
|
|
162
|
+
readonly _tag: "proposal";
|
|
85
163
|
} | {
|
|
86
|
-
pending?: boolean | undefined;
|
|
87
|
-
|
|
88
|
-
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
164
|
+
readonly pending?: boolean | undefined;
|
|
165
|
+
readonly _tag: "toolkit";
|
|
89
166
|
} | {
|
|
90
|
-
pending?: boolean | undefined;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
167
|
+
readonly pending?: boolean | undefined;
|
|
168
|
+
readonly disposition?: string | undefined;
|
|
169
|
+
readonly _tag: "json";
|
|
170
|
+
readonly data: string;
|
|
94
171
|
})[];
|
|
95
|
-
properties?: {
|
|
96
|
-
[x: string]: any;
|
|
172
|
+
readonly properties?: {
|
|
173
|
+
readonly [x: string]: any;
|
|
97
174
|
} | undefined;
|
|
98
175
|
};
|
|
99
|
-
readonly
|
|
100
|
-
readonly timeout?: number | undefined;
|
|
101
|
-
readonly fallbackToRaw?: boolean | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
readonly objects?: readonly import("@dxos/echo-schema").Expando[] | undefined;
|
|
176
|
+
readonly objects?: readonly any[] | undefined;
|
|
104
177
|
}, {
|
|
105
|
-
message:
|
|
106
|
-
id: string;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
role?: "user" | "assistant" | undefined;
|
|
112
|
-
contact?: import("@dxos/echo
|
|
113
|
-
image?: string | undefined;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
name?: string | undefined;
|
|
126
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
127
|
-
image?: string | undefined;
|
|
128
|
-
website?: string | undefined;
|
|
178
|
+
readonly message: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
179
|
+
readonly id: string;
|
|
180
|
+
readonly parentMessage?: string | undefined;
|
|
181
|
+
readonly created: string;
|
|
182
|
+
readonly sender: {
|
|
183
|
+
readonly name?: string | undefined;
|
|
184
|
+
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
185
|
+
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
186
|
+
readonly image?: string | undefined;
|
|
187
|
+
readonly fullName?: string | undefined;
|
|
188
|
+
readonly preferredName?: string | undefined;
|
|
189
|
+
readonly nickname?: string | undefined;
|
|
190
|
+
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
191
|
+
readonly description?: string | undefined;
|
|
192
|
+
readonly name?: string | undefined;
|
|
193
|
+
readonly status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
194
|
+
readonly image?: string | undefined;
|
|
195
|
+
readonly website?: string | undefined;
|
|
196
|
+
} & {
|
|
197
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
129
198
|
}> | undefined;
|
|
130
|
-
jobTitle?: string | undefined;
|
|
131
|
-
department?: string | undefined;
|
|
132
|
-
notes?: string | undefined;
|
|
133
|
-
emails?: {
|
|
199
|
+
readonly jobTitle?: string | undefined;
|
|
200
|
+
readonly department?: string | undefined;
|
|
201
|
+
readonly notes?: string | undefined;
|
|
202
|
+
readonly emails?: readonly {
|
|
134
203
|
readonly value: string;
|
|
135
204
|
readonly label?: string | undefined;
|
|
136
205
|
}[] | undefined;
|
|
137
|
-
identities?: {
|
|
206
|
+
readonly identities?: readonly {
|
|
138
207
|
readonly value: string;
|
|
139
208
|
readonly label?: string | undefined;
|
|
140
209
|
}[] | undefined;
|
|
141
|
-
phoneNumbers?: {
|
|
210
|
+
readonly phoneNumbers?: readonly {
|
|
142
211
|
readonly value: string;
|
|
143
212
|
readonly label?: string | undefined;
|
|
144
213
|
}[] | undefined;
|
|
145
|
-
|
|
214
|
+
readonly fields?: readonly {
|
|
215
|
+
readonly value: string;
|
|
216
|
+
readonly label: string;
|
|
217
|
+
readonly category?: string | undefined;
|
|
218
|
+
}[] | undefined;
|
|
219
|
+
readonly addresses?: readonly {
|
|
146
220
|
readonly value: {
|
|
147
221
|
readonly street?: string | undefined;
|
|
148
222
|
readonly extended?: string | undefined;
|
|
@@ -154,55 +228,120 @@ export declare const extractionNerFn: import("@dxos/functions").FunctionDefiniti
|
|
|
154
228
|
};
|
|
155
229
|
readonly label?: string | undefined;
|
|
156
230
|
}[] | undefined;
|
|
157
|
-
urls?: {
|
|
231
|
+
readonly urls?: readonly {
|
|
158
232
|
readonly value: string;
|
|
159
233
|
readonly label?: string | undefined;
|
|
160
234
|
}[] | undefined;
|
|
161
|
-
birthday?: string | undefined;
|
|
235
|
+
readonly birthday?: string | undefined;
|
|
236
|
+
} & {
|
|
237
|
+
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
162
238
|
}> | undefined;
|
|
163
|
-
identityDid?: string | undefined;
|
|
164
|
-
identityKey?: string | undefined;
|
|
239
|
+
readonly identityDid?: string | undefined;
|
|
240
|
+
readonly identityKey?: string | undefined;
|
|
241
|
+
readonly email?: string | undefined;
|
|
165
242
|
};
|
|
166
|
-
blocks: ({
|
|
167
|
-
pending?: boolean | undefined;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
243
|
+
readonly blocks: readonly ({
|
|
244
|
+
readonly pending?: boolean | undefined;
|
|
245
|
+
readonly text: string;
|
|
246
|
+
readonly mimeType?: string | undefined;
|
|
247
|
+
readonly disposition?: string | undefined;
|
|
248
|
+
readonly _tag: "text";
|
|
249
|
+
} | {
|
|
250
|
+
readonly pending?: boolean | undefined;
|
|
251
|
+
readonly _tag: "reasoning";
|
|
252
|
+
readonly reasoningText?: string | undefined;
|
|
253
|
+
readonly redactedText?: string | undefined;
|
|
254
|
+
readonly signature?: string | undefined;
|
|
255
|
+
} | {
|
|
256
|
+
readonly name: string;
|
|
257
|
+
readonly pending?: boolean | undefined;
|
|
258
|
+
readonly _tag: "toolCall";
|
|
259
|
+
readonly toolCallId: string;
|
|
260
|
+
readonly input: string;
|
|
261
|
+
readonly providerExecuted: boolean;
|
|
262
|
+
} | {
|
|
263
|
+
readonly name: string;
|
|
264
|
+
readonly pending?: boolean | undefined;
|
|
265
|
+
readonly _tag: "toolResult";
|
|
266
|
+
readonly toolCallId: string;
|
|
267
|
+
readonly providerExecuted: boolean;
|
|
268
|
+
readonly result?: string | undefined;
|
|
269
|
+
readonly error?: string | undefined;
|
|
270
|
+
} | {
|
|
271
|
+
readonly pending?: boolean | undefined;
|
|
272
|
+
readonly mimeType?: string | undefined;
|
|
273
|
+
readonly _tag: "summary";
|
|
274
|
+
readonly message?: string | undefined;
|
|
275
|
+
readonly model?: string | undefined;
|
|
276
|
+
readonly usage?: {
|
|
277
|
+
readonly inputTokens?: number | undefined;
|
|
278
|
+
readonly outputTokens?: number | undefined;
|
|
279
|
+
readonly totalTokens?: number | undefined;
|
|
280
|
+
} | undefined;
|
|
281
|
+
readonly toolCalls?: number | undefined;
|
|
282
|
+
readonly errors?: number | undefined;
|
|
283
|
+
readonly duration?: number | undefined;
|
|
284
|
+
} | {
|
|
285
|
+
readonly source?: {
|
|
286
|
+
readonly type: "base64";
|
|
287
|
+
readonly mediaType: string;
|
|
288
|
+
readonly data: string;
|
|
184
289
|
} | {
|
|
185
|
-
type: "http";
|
|
186
|
-
url: string;
|
|
290
|
+
readonly type: "http";
|
|
291
|
+
readonly url: string;
|
|
187
292
|
} | undefined;
|
|
293
|
+
readonly id?: string | undefined;
|
|
294
|
+
readonly pending?: boolean | undefined;
|
|
295
|
+
readonly _tag: "image";
|
|
296
|
+
} | {
|
|
297
|
+
readonly name?: string | undefined;
|
|
298
|
+
readonly pending?: boolean | undefined;
|
|
299
|
+
readonly _tag: "file";
|
|
300
|
+
readonly mediaType?: string | undefined;
|
|
301
|
+
readonly url: string;
|
|
302
|
+
} | {
|
|
303
|
+
readonly pending?: boolean | undefined;
|
|
304
|
+
readonly _tag: "reference";
|
|
305
|
+
readonly reference: import("@dxos/echo/internal").Ref<any>;
|
|
306
|
+
} | {
|
|
307
|
+
readonly pending?: boolean | undefined;
|
|
308
|
+
readonly text: string;
|
|
309
|
+
readonly _tag: "transcript";
|
|
310
|
+
readonly started: string;
|
|
311
|
+
} | {
|
|
312
|
+
readonly pending?: boolean | undefined;
|
|
313
|
+
readonly _tag: "status";
|
|
314
|
+
readonly statusText: string;
|
|
315
|
+
} | {
|
|
316
|
+
readonly pending?: boolean | undefined;
|
|
317
|
+
readonly text: string;
|
|
318
|
+
readonly _tag: "suggestion";
|
|
319
|
+
} | {
|
|
320
|
+
readonly pending?: boolean | undefined;
|
|
321
|
+
readonly _tag: "select";
|
|
322
|
+
readonly options: string[];
|
|
323
|
+
} | {
|
|
324
|
+
readonly version: unknown;
|
|
325
|
+
readonly pending?: boolean | undefined;
|
|
326
|
+
readonly _tag: "anchor";
|
|
327
|
+
readonly objectId: string;
|
|
328
|
+
} | {
|
|
329
|
+
readonly pending?: boolean | undefined;
|
|
330
|
+
readonly text: string;
|
|
331
|
+
readonly _tag: "proposal";
|
|
188
332
|
} | {
|
|
189
|
-
pending?: boolean | undefined;
|
|
190
|
-
|
|
191
|
-
reference: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>;
|
|
333
|
+
readonly pending?: boolean | undefined;
|
|
334
|
+
readonly _tag: "toolkit";
|
|
192
335
|
} | {
|
|
193
|
-
pending?: boolean | undefined;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
336
|
+
readonly pending?: boolean | undefined;
|
|
337
|
+
readonly disposition?: string | undefined;
|
|
338
|
+
readonly _tag: "json";
|
|
339
|
+
readonly data: string;
|
|
197
340
|
})[];
|
|
198
|
-
properties?: {
|
|
199
|
-
[x: string]: any;
|
|
341
|
+
readonly properties?: {
|
|
342
|
+
readonly [x: string]: any;
|
|
200
343
|
} | undefined;
|
|
201
|
-
}, "id" | typeof import("@dxos/echo-schema").EntityKindId> & {
|
|
202
|
-
id?: string;
|
|
203
|
-
} & {
|
|
204
|
-
id: string;
|
|
205
344
|
};
|
|
206
|
-
timeElapsed: number;
|
|
207
|
-
}>;
|
|
345
|
+
readonly timeElapsed: number;
|
|
346
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
208
347
|
//# sourceMappingURL=extraction-ner-function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extraction-ner-function.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/extraction-ner-function.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type TokenClassificationPipelineType, type TokenClassificationSingle } from '@xenova/transformers';
|
|
2
2
|
/**
|
|
3
3
|
* Named Entity Recognition pipeline.
|
|
4
4
|
* Initializes the pipeline on first call.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"named-entity-recognition.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/named-entity-recognition.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK
|
|
1
|
+
{"version":3,"file":"named-entity-recognition.d.ts","sourceRoot":"","sources":["../../../../../src/extraction/extraction-ner-function/named-entity-recognition.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAE/B,MAAM,sBAAsB,CAAC;AAM9B;;;;GAIG;AACH,eAAO,MAAM,MAAM,gDASlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,yBAAyB,EAAE,CAM3F,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,yBAAyB,EAAE,KAAG,yBAAyB,EAAE,EAmClG,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,yBAAyB,EAAE,KAAG,yBAmBrE,CAAC"}
|