@arbidocs/sdk 0.4.67 → 0.4.68
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/{browser-D5Jwb3f2.d.cts → browser-Dhk899kq.d.cts} +49 -8
- package/dist/{browser-D5Jwb3f2.d.ts → browser-Dhk899kq.d.ts} +49 -8
- package/dist/browser.cjs +9 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +9 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1584,6 +1584,12 @@ declare function getConversationThreads(arbi: ArbiClient, conversationId: string
|
|
|
1584
1584
|
record: {
|
|
1585
1585
|
[x: string]: unknown;
|
|
1586
1586
|
};
|
|
1587
|
+
} | {
|
|
1588
|
+
name: "facts_context";
|
|
1589
|
+
description: string;
|
|
1590
|
+
tool_args: {
|
|
1591
|
+
fact_ext_ids: string[];
|
|
1592
|
+
};
|
|
1587
1593
|
} | {
|
|
1588
1594
|
name: "image_generation";
|
|
1589
1595
|
description: string;
|
|
@@ -1763,6 +1769,12 @@ declare function getMessage$1(arbi: ArbiClient, messageId: string): Promise<{
|
|
|
1763
1769
|
record: {
|
|
1764
1770
|
[x: string]: unknown;
|
|
1765
1771
|
};
|
|
1772
|
+
} | {
|
|
1773
|
+
name: "facts_context";
|
|
1774
|
+
description: string;
|
|
1775
|
+
tool_args: {
|
|
1776
|
+
fact_ext_ids: string[];
|
|
1777
|
+
};
|
|
1766
1778
|
} | {
|
|
1767
1779
|
name: "image_generation";
|
|
1768
1780
|
description: string;
|
|
@@ -1949,6 +1961,12 @@ declare function postConversationMessage(arbi: ArbiClient, body: PostMessageRequ
|
|
|
1949
1961
|
record: {
|
|
1950
1962
|
[x: string]: unknown;
|
|
1951
1963
|
};
|
|
1964
|
+
} | {
|
|
1965
|
+
name: "facts_context";
|
|
1966
|
+
description: string;
|
|
1967
|
+
tool_args: {
|
|
1968
|
+
fact_ext_ids: string[];
|
|
1969
|
+
};
|
|
1952
1970
|
} | {
|
|
1953
1971
|
name: "image_generation";
|
|
1954
1972
|
description: string;
|
|
@@ -2016,6 +2034,12 @@ declare namespace conversations {
|
|
|
2016
2034
|
type MessageInput$1 = components['schemas']['MessageInput'];
|
|
2017
2035
|
declare function buildRetrievalChunkTool(docIds: string[], searchMode?: 'semantic' | 'keyword' | 'hybrid'): components['schemas']['RetrievalChunkTool'];
|
|
2018
2036
|
declare function buildRetrievalFullContextTool(docIds: string[]): components['schemas']['RetrievalFullContextTool'];
|
|
2037
|
+
/**
|
|
2038
|
+
* The facts added to a chat (`facts_context`). Snapshot semantics like the retrieval tools: send
|
|
2039
|
+
* the chat's FULL fact list with every message; the server reads only the current message's list
|
|
2040
|
+
* and injects those facts into the agent's prompt.
|
|
2041
|
+
*/
|
|
2042
|
+
declare function buildFactsContextTool(factIds: string[]): components['schemas']['FactsContextTool'];
|
|
2019
2043
|
declare function buildRetrievalTocTool(docIds: string[]): components['schemas']['RetrievalTOCTool'];
|
|
2020
2044
|
interface RetrieveOptions {
|
|
2021
2045
|
arbi: ArbiClient;
|
|
@@ -2195,6 +2219,7 @@ type assistant_ParsedSlashCommand = ParsedSlashCommand;
|
|
|
2195
2219
|
type assistant_RetrieveOptions = RetrieveOptions;
|
|
2196
2220
|
type assistant_RetrieveResult = RetrieveResult;
|
|
2197
2221
|
type assistant_SkillSummary = SkillSummary;
|
|
2222
|
+
declare const assistant_buildFactsContextTool: typeof buildFactsContextTool;
|
|
2198
2223
|
declare const assistant_buildRetrievalChunkTool: typeof buildRetrievalChunkTool;
|
|
2199
2224
|
declare const assistant_buildRetrievalFullContextTool: typeof buildRetrievalFullContextTool;
|
|
2200
2225
|
declare const assistant_buildRetrievalTocTool: typeof buildRetrievalTocTool;
|
|
@@ -2208,7 +2233,7 @@ declare const assistant_queryAssistant: typeof queryAssistant;
|
|
|
2208
2233
|
declare const assistant_respondToAgent: typeof respondToAgent;
|
|
2209
2234
|
declare const assistant_retrieve: typeof retrieve;
|
|
2210
2235
|
declare namespace assistant {
|
|
2211
|
-
export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
|
|
2236
|
+
export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildFactsContextTool as buildFactsContextTool, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
|
|
2212
2237
|
}
|
|
2213
2238
|
|
|
2214
2239
|
/**
|
|
@@ -2840,6 +2865,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
|
|
|
2840
2865
|
PERSIST_LEARNINGS: boolean;
|
|
2841
2866
|
SKILLS_ENABLED: boolean;
|
|
2842
2867
|
SKILL_CREATION: boolean;
|
|
2868
|
+
WORKSPACE_SETUP: boolean;
|
|
2843
2869
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
2844
2870
|
REMOTE_CONTROL_ENABLED: boolean;
|
|
2845
2871
|
ENABLED_SKILLS?: string[] | null | undefined;
|
|
@@ -3302,7 +3328,6 @@ type FactSearchRequest = components['schemas']['FactSearchRequest'];
|
|
|
3302
3328
|
type FactSearchResponse = components['schemas']['FactSearchResponse'];
|
|
3303
3329
|
/** Filters and paging for {@link listFacts}. */
|
|
3304
3330
|
interface ListFactsOptions {
|
|
3305
|
-
pinnedOnly?: boolean;
|
|
3306
3331
|
/** Timeline range start, at any precision (`'2019'`, `'2019-10'`). */
|
|
3307
3332
|
from?: string;
|
|
3308
3333
|
/** Timeline range end, at any precision. */
|
|
@@ -4555,6 +4580,12 @@ declare class Arbi {
|
|
|
4555
4580
|
record: {
|
|
4556
4581
|
[x: string]: unknown;
|
|
4557
4582
|
};
|
|
4583
|
+
} | {
|
|
4584
|
+
name: "facts_context";
|
|
4585
|
+
description: string;
|
|
4586
|
+
tool_args: {
|
|
4587
|
+
fact_ext_ids: string[];
|
|
4588
|
+
};
|
|
4558
4589
|
} | {
|
|
4559
4590
|
name: "image_generation";
|
|
4560
4591
|
description: string;
|
|
@@ -4926,6 +4957,12 @@ declare class Arbi {
|
|
|
4926
4957
|
record: {
|
|
4927
4958
|
[x: string]: unknown;
|
|
4928
4959
|
};
|
|
4960
|
+
} | {
|
|
4961
|
+
name: "facts_context";
|
|
4962
|
+
description: string;
|
|
4963
|
+
tool_args: {
|
|
4964
|
+
fact_ext_ids: string[];
|
|
4965
|
+
};
|
|
4929
4966
|
} | {
|
|
4930
4967
|
name: "image_generation";
|
|
4931
4968
|
description: string;
|
|
@@ -5103,6 +5140,12 @@ declare class Arbi {
|
|
|
5103
5140
|
record: {
|
|
5104
5141
|
[x: string]: unknown;
|
|
5105
5142
|
};
|
|
5143
|
+
} | {
|
|
5144
|
+
name: "facts_context";
|
|
5145
|
+
description: string;
|
|
5146
|
+
tool_args: {
|
|
5147
|
+
fact_ext_ids: string[];
|
|
5148
|
+
};
|
|
5106
5149
|
} | {
|
|
5107
5150
|
name: "image_generation";
|
|
5108
5151
|
description: string;
|
|
@@ -5606,6 +5649,7 @@ declare class Arbi {
|
|
|
5606
5649
|
PERSIST_LEARNINGS: boolean;
|
|
5607
5650
|
SKILLS_ENABLED: boolean;
|
|
5608
5651
|
SKILL_CREATION: boolean;
|
|
5652
|
+
WORKSPACE_SETUP: boolean;
|
|
5609
5653
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
5610
5654
|
REMOTE_CONTROL_ENABLED: boolean;
|
|
5611
5655
|
ENABLED_SKILLS?: string[] | null | undefined;
|
|
@@ -6064,6 +6108,7 @@ declare class Arbi {
|
|
|
6064
6108
|
PERSIST_LEARNINGS: boolean;
|
|
6065
6109
|
SKILLS_ENABLED: boolean;
|
|
6066
6110
|
SKILL_CREATION: boolean;
|
|
6111
|
+
WORKSPACE_SETUP: boolean;
|
|
6067
6112
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
6068
6113
|
REMOTE_CONTROL_ENABLED: boolean;
|
|
6069
6114
|
ENABLED_SKILLS?: string[] | null | undefined;
|
|
@@ -6480,7 +6525,6 @@ declare class Arbi {
|
|
|
6480
6525
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6481
6526
|
external_id: string;
|
|
6482
6527
|
workspace_ext_id: string;
|
|
6483
|
-
pinned: boolean;
|
|
6484
6528
|
shared: boolean;
|
|
6485
6529
|
confirmed: boolean;
|
|
6486
6530
|
date_start?: string | null;
|
|
@@ -6498,7 +6542,6 @@ declare class Arbi {
|
|
|
6498
6542
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6499
6543
|
external_id: string;
|
|
6500
6544
|
workspace_ext_id: string;
|
|
6501
|
-
pinned: boolean;
|
|
6502
6545
|
shared: boolean;
|
|
6503
6546
|
confirmed: boolean;
|
|
6504
6547
|
date_start?: string | null;
|
|
@@ -6518,7 +6561,6 @@ declare class Arbi {
|
|
|
6518
6561
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6519
6562
|
external_id: string;
|
|
6520
6563
|
workspace_ext_id: string;
|
|
6521
|
-
pinned: boolean;
|
|
6522
6564
|
shared: boolean;
|
|
6523
6565
|
confirmed: boolean;
|
|
6524
6566
|
date_start?: string | null;
|
|
@@ -6538,7 +6580,6 @@ declare class Arbi {
|
|
|
6538
6580
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6539
6581
|
external_id: string;
|
|
6540
6582
|
workspace_ext_id: string;
|
|
6541
|
-
pinned: boolean;
|
|
6542
6583
|
shared: boolean;
|
|
6543
6584
|
confirmed: boolean;
|
|
6544
6585
|
date_start?: string | null;
|
|
@@ -6561,7 +6602,6 @@ declare class Arbi {
|
|
|
6561
6602
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6562
6603
|
external_id: string;
|
|
6563
6604
|
workspace_ext_id: string;
|
|
6564
|
-
pinned: boolean;
|
|
6565
6605
|
shared: boolean;
|
|
6566
6606
|
confirmed: boolean;
|
|
6567
6607
|
date_start?: string | null;
|
|
@@ -7105,6 +7145,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
7105
7145
|
PERSIST_LEARNINGS: boolean;
|
|
7106
7146
|
SKILLS_ENABLED: boolean;
|
|
7107
7147
|
SKILL_CREATION: boolean;
|
|
7148
|
+
WORKSPACE_SETUP: boolean;
|
|
7108
7149
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
7109
7150
|
REMOTE_CONTROL_ENABLED: boolean;
|
|
7110
7151
|
ENABLED_SKILLS?: string[] | null | undefined;
|
|
@@ -7852,4 +7893,4 @@ declare namespace account {
|
|
|
7852
7893
|
export { account_confirmEmailChange as confirmEmailChange, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
|
|
7853
7894
|
}
|
|
7854
7895
|
|
|
7855
|
-
export { type ParsedSlashCommand as $, type ActivityKind as A, type DecryptedDmNotification as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DeferredInterjectionEvent as E, type DmAttachmentFile as F, type DmAttachmentInput as G, type DmCryptoContext as H, type DocNameMap as I, type DocumentAutomationAction as J, type DocumentListFields as K, type DocumentListOrder as L, type DocumentSelector as M, type DocumentWaiter as N, type DocumentWaiterOptions as O, type FactResponse as P, type FactSearchRequest as Q, type FactSearchResponse as R, type FormattedWsMessage as S, type ListAllOptions as T, type ListFactsOptions as U, type ListPaginatedOptions as V, type MailAttachment as W, type MessageLevel as X, type MessageMetadataPayload$1 as Y, type MessageQueuedEvent as Z, type OutputTokensDetails as _, type ActivityResponse as a,
|
|
7896
|
+
export { type ParsedSlashCommand as $, type ActivityKind as A, type DecryptedDmNotification as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DeferredInterjectionEvent as E, type DmAttachmentFile as F, type DmAttachmentInput as G, type DmCryptoContext as H, type DocNameMap as I, type DocumentAutomationAction as J, type DocumentListFields as K, type DocumentListOrder as L, type DocumentSelector as M, type DocumentWaiter as N, type DocumentWaiterOptions as O, type FactResponse as P, type FactSearchRequest as Q, type FactSearchResponse as R, type FormattedWsMessage as S, type ListAllOptions as T, type ListFactsOptions as U, type ListPaginatedOptions as V, type MailAttachment as W, type MessageLevel as X, type MessageMetadataPayload$1 as Y, type MessageQueuedEvent as Z, type OutputTokensDetails as _, type ActivityResponse as a, conversations as a$, type PendingAuthResponse as a0, type PlanWorkRequest as a1, type ProbeAnswerEvent as a2, type ProjectInvoicesResponse as a3, type ProjectUsageResponse as a4, type QueryOptions as a5, type ReconnectOptions as a6, type ReconnectableWsConnection as a7, type ResolvedCitation as a8, type ResolvedRecipient as a9, type UploadResult as aA, type UserDailyUsageResponse as aB, type UserInfo as aC, type UserInputRequestEvent as aD, type UserMessageEvent as aE, WebSocketAuthError as aF, type WorkStatus as aG, type WorkflowAuthMode as aH, type WorkflowResponse as aI, type WorkflowRunHistoryResponse as aJ, type WorkflowRunResponse as aK, type WorkspaceContext as aL, type WsConnection as aM, account as aN, agentconfig as aO, agents as aP, assistant as aQ, authenticatedFetch as aR, buildDocNameMap as aS, buildFactsContextTool as aT, buildRetrievalChunkTool as aU, buildRetrievalFullContextTool as aV, buildRetrievalTocTool as aW, connectWebSocket as aX, connectWithReconnect as aY, consumeSSEStream as aZ, contacts as a_, type ResponseCompletedEvent as aa, type ResponseContentPartAddedEvent as ab, type ResponseCreatedEvent as ac, type ResponseFailedEvent as ad, type ResponseOutputItemAddedEvent as ae, type ResponseOutputItemDoneEvent as af, type ResponseOutputTextDeltaEvent as ag, type ResponseOutputTextDoneEvent as ah, type ResponseUsage as ai, type SSEEvent as aj, type SSEStreamCallbacks as ak, type SSEStreamResult as al, type SSEStreamStartData as am, SUPPORTED_EXTENSIONS as an, type SkillSummary as ao, type SkippedFile as ap, type SubmitBackgroundQueryOptions as aq, type TaskPlan as ar, type TokenBudgetContext as as, type UpdateConversationRequest as at, type UpdateFactRequest as au, type UpdateWorkflowRequest as av, type UploadBatchResult as aw, type UploadDirectOptions as ax, type UploadDirectResult as ay, type UploadOptions as az, type AgentControlStateEvent as b, countCitations as b0, createAuthenticatedClient as b1, createDocumentWaiter as b2, dm as b3, doctags as b4, documents as b5, facts as b6, files as b7, filterSkills as b8, formatAgentStepLabel as b9, responses as bA, selectWorkspace as bB, selectWorkspaceById as bC, sessions as bD, settings as bE, streamSSE as bF, stripCitationMarkdown as bG, summarizeCitations as bH, tags as bI, work as bJ, workflows as bK, workspaces as bL, formatFileSize as ba, formatItemLabel as bb, formatStreamSummary as bc, formatUserName as bd, formatWorkspaceChoices as be, formatWsMessage as bf, generateEncryptedWorkspaceKey as bg, generateNewWorkspaceKey as bh, getErrorCode as bi, getErrorMessage as bj, getRawWorkspaceKey as bk, health as bl, mail as bm, parseSSEEvents as bn, parseSlashCommand as bo, parseSlashTokenInProgress as bp, performPasswordLogin as bq, performSigningKeyLogin as br, performSsoDeviceFlowLogin as bs, profile as bt, projects as bu, requireData as bv, requireOk as bw, resolveAuth as bx, resolveCitations as by, resolveWorkspace as bz, type AgentStepDeltaEvent as c, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type CreateFactRequest as w, type CreateFactsRequest as x, type CreateWorkRequest as y, type CreateWorkflowRequest as z };
|
|
@@ -1584,6 +1584,12 @@ declare function getConversationThreads(arbi: ArbiClient, conversationId: string
|
|
|
1584
1584
|
record: {
|
|
1585
1585
|
[x: string]: unknown;
|
|
1586
1586
|
};
|
|
1587
|
+
} | {
|
|
1588
|
+
name: "facts_context";
|
|
1589
|
+
description: string;
|
|
1590
|
+
tool_args: {
|
|
1591
|
+
fact_ext_ids: string[];
|
|
1592
|
+
};
|
|
1587
1593
|
} | {
|
|
1588
1594
|
name: "image_generation";
|
|
1589
1595
|
description: string;
|
|
@@ -1763,6 +1769,12 @@ declare function getMessage$1(arbi: ArbiClient, messageId: string): Promise<{
|
|
|
1763
1769
|
record: {
|
|
1764
1770
|
[x: string]: unknown;
|
|
1765
1771
|
};
|
|
1772
|
+
} | {
|
|
1773
|
+
name: "facts_context";
|
|
1774
|
+
description: string;
|
|
1775
|
+
tool_args: {
|
|
1776
|
+
fact_ext_ids: string[];
|
|
1777
|
+
};
|
|
1766
1778
|
} | {
|
|
1767
1779
|
name: "image_generation";
|
|
1768
1780
|
description: string;
|
|
@@ -1949,6 +1961,12 @@ declare function postConversationMessage(arbi: ArbiClient, body: PostMessageRequ
|
|
|
1949
1961
|
record: {
|
|
1950
1962
|
[x: string]: unknown;
|
|
1951
1963
|
};
|
|
1964
|
+
} | {
|
|
1965
|
+
name: "facts_context";
|
|
1966
|
+
description: string;
|
|
1967
|
+
tool_args: {
|
|
1968
|
+
fact_ext_ids: string[];
|
|
1969
|
+
};
|
|
1952
1970
|
} | {
|
|
1953
1971
|
name: "image_generation";
|
|
1954
1972
|
description: string;
|
|
@@ -2016,6 +2034,12 @@ declare namespace conversations {
|
|
|
2016
2034
|
type MessageInput$1 = components['schemas']['MessageInput'];
|
|
2017
2035
|
declare function buildRetrievalChunkTool(docIds: string[], searchMode?: 'semantic' | 'keyword' | 'hybrid'): components['schemas']['RetrievalChunkTool'];
|
|
2018
2036
|
declare function buildRetrievalFullContextTool(docIds: string[]): components['schemas']['RetrievalFullContextTool'];
|
|
2037
|
+
/**
|
|
2038
|
+
* The facts added to a chat (`facts_context`). Snapshot semantics like the retrieval tools: send
|
|
2039
|
+
* the chat's FULL fact list with every message; the server reads only the current message's list
|
|
2040
|
+
* and injects those facts into the agent's prompt.
|
|
2041
|
+
*/
|
|
2042
|
+
declare function buildFactsContextTool(factIds: string[]): components['schemas']['FactsContextTool'];
|
|
2019
2043
|
declare function buildRetrievalTocTool(docIds: string[]): components['schemas']['RetrievalTOCTool'];
|
|
2020
2044
|
interface RetrieveOptions {
|
|
2021
2045
|
arbi: ArbiClient;
|
|
@@ -2195,6 +2219,7 @@ type assistant_ParsedSlashCommand = ParsedSlashCommand;
|
|
|
2195
2219
|
type assistant_RetrieveOptions = RetrieveOptions;
|
|
2196
2220
|
type assistant_RetrieveResult = RetrieveResult;
|
|
2197
2221
|
type assistant_SkillSummary = SkillSummary;
|
|
2222
|
+
declare const assistant_buildFactsContextTool: typeof buildFactsContextTool;
|
|
2198
2223
|
declare const assistant_buildRetrievalChunkTool: typeof buildRetrievalChunkTool;
|
|
2199
2224
|
declare const assistant_buildRetrievalFullContextTool: typeof buildRetrievalFullContextTool;
|
|
2200
2225
|
declare const assistant_buildRetrievalTocTool: typeof buildRetrievalTocTool;
|
|
@@ -2208,7 +2233,7 @@ declare const assistant_queryAssistant: typeof queryAssistant;
|
|
|
2208
2233
|
declare const assistant_respondToAgent: typeof respondToAgent;
|
|
2209
2234
|
declare const assistant_retrieve: typeof retrieve;
|
|
2210
2235
|
declare namespace assistant {
|
|
2211
|
-
export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
|
|
2236
|
+
export { type assistant_AssistantQueryOptions as AssistantQueryOptions, type assistant_Chunk as Chunk, type assistant_ChunkMetadata as ChunkMetadata, type assistant_CommandDescriptor as CommandDescriptor, type assistant_ParsedSlashCommand as ParsedSlashCommand, type assistant_RetrieveOptions as RetrieveOptions, type assistant_RetrieveResult as RetrieveResult, type assistant_SkillSummary as SkillSummary, assistant_buildFactsContextTool as buildFactsContextTool, assistant_buildRetrievalChunkTool as buildRetrievalChunkTool, assistant_buildRetrievalFullContextTool as buildRetrievalFullContextTool, assistant_buildRetrievalTocTool as buildRetrievalTocTool, assistant_cancelAssistantRun as cancelAssistantRun, assistant_filterSkills as filterSkills, assistant_listCommands as listCommands, assistant_listSkills as listSkills, assistant_parseSlashCommand as parseSlashCommand, assistant_parseSlashTokenInProgress as parseSlashTokenInProgress, assistant_queryAssistant as queryAssistant, assistant_respondToAgent as respondToAgent, assistant_retrieve as retrieve };
|
|
2212
2237
|
}
|
|
2213
2238
|
|
|
2214
2239
|
/**
|
|
@@ -2840,6 +2865,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
|
|
|
2840
2865
|
PERSIST_LEARNINGS: boolean;
|
|
2841
2866
|
SKILLS_ENABLED: boolean;
|
|
2842
2867
|
SKILL_CREATION: boolean;
|
|
2868
|
+
WORKSPACE_SETUP: boolean;
|
|
2843
2869
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
2844
2870
|
REMOTE_CONTROL_ENABLED: boolean;
|
|
2845
2871
|
ENABLED_SKILLS?: string[] | null | undefined;
|
|
@@ -3302,7 +3328,6 @@ type FactSearchRequest = components['schemas']['FactSearchRequest'];
|
|
|
3302
3328
|
type FactSearchResponse = components['schemas']['FactSearchResponse'];
|
|
3303
3329
|
/** Filters and paging for {@link listFacts}. */
|
|
3304
3330
|
interface ListFactsOptions {
|
|
3305
|
-
pinnedOnly?: boolean;
|
|
3306
3331
|
/** Timeline range start, at any precision (`'2019'`, `'2019-10'`). */
|
|
3307
3332
|
from?: string;
|
|
3308
3333
|
/** Timeline range end, at any precision. */
|
|
@@ -4555,6 +4580,12 @@ declare class Arbi {
|
|
|
4555
4580
|
record: {
|
|
4556
4581
|
[x: string]: unknown;
|
|
4557
4582
|
};
|
|
4583
|
+
} | {
|
|
4584
|
+
name: "facts_context";
|
|
4585
|
+
description: string;
|
|
4586
|
+
tool_args: {
|
|
4587
|
+
fact_ext_ids: string[];
|
|
4588
|
+
};
|
|
4558
4589
|
} | {
|
|
4559
4590
|
name: "image_generation";
|
|
4560
4591
|
description: string;
|
|
@@ -4926,6 +4957,12 @@ declare class Arbi {
|
|
|
4926
4957
|
record: {
|
|
4927
4958
|
[x: string]: unknown;
|
|
4928
4959
|
};
|
|
4960
|
+
} | {
|
|
4961
|
+
name: "facts_context";
|
|
4962
|
+
description: string;
|
|
4963
|
+
tool_args: {
|
|
4964
|
+
fact_ext_ids: string[];
|
|
4965
|
+
};
|
|
4929
4966
|
} | {
|
|
4930
4967
|
name: "image_generation";
|
|
4931
4968
|
description: string;
|
|
@@ -5103,6 +5140,12 @@ declare class Arbi {
|
|
|
5103
5140
|
record: {
|
|
5104
5141
|
[x: string]: unknown;
|
|
5105
5142
|
};
|
|
5143
|
+
} | {
|
|
5144
|
+
name: "facts_context";
|
|
5145
|
+
description: string;
|
|
5146
|
+
tool_args: {
|
|
5147
|
+
fact_ext_ids: string[];
|
|
5148
|
+
};
|
|
5106
5149
|
} | {
|
|
5107
5150
|
name: "image_generation";
|
|
5108
5151
|
description: string;
|
|
@@ -5606,6 +5649,7 @@ declare class Arbi {
|
|
|
5606
5649
|
PERSIST_LEARNINGS: boolean;
|
|
5607
5650
|
SKILLS_ENABLED: boolean;
|
|
5608
5651
|
SKILL_CREATION: boolean;
|
|
5652
|
+
WORKSPACE_SETUP: boolean;
|
|
5609
5653
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
5610
5654
|
REMOTE_CONTROL_ENABLED: boolean;
|
|
5611
5655
|
ENABLED_SKILLS?: string[] | null | undefined;
|
|
@@ -6064,6 +6108,7 @@ declare class Arbi {
|
|
|
6064
6108
|
PERSIST_LEARNINGS: boolean;
|
|
6065
6109
|
SKILLS_ENABLED: boolean;
|
|
6066
6110
|
SKILL_CREATION: boolean;
|
|
6111
|
+
WORKSPACE_SETUP: boolean;
|
|
6067
6112
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
6068
6113
|
REMOTE_CONTROL_ENABLED: boolean;
|
|
6069
6114
|
ENABLED_SKILLS?: string[] | null | undefined;
|
|
@@ -6480,7 +6525,6 @@ declare class Arbi {
|
|
|
6480
6525
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6481
6526
|
external_id: string;
|
|
6482
6527
|
workspace_ext_id: string;
|
|
6483
|
-
pinned: boolean;
|
|
6484
6528
|
shared: boolean;
|
|
6485
6529
|
confirmed: boolean;
|
|
6486
6530
|
date_start?: string | null;
|
|
@@ -6498,7 +6542,6 @@ declare class Arbi {
|
|
|
6498
6542
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6499
6543
|
external_id: string;
|
|
6500
6544
|
workspace_ext_id: string;
|
|
6501
|
-
pinned: boolean;
|
|
6502
6545
|
shared: boolean;
|
|
6503
6546
|
confirmed: boolean;
|
|
6504
6547
|
date_start?: string | null;
|
|
@@ -6518,7 +6561,6 @@ declare class Arbi {
|
|
|
6518
6561
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6519
6562
|
external_id: string;
|
|
6520
6563
|
workspace_ext_id: string;
|
|
6521
|
-
pinned: boolean;
|
|
6522
6564
|
shared: boolean;
|
|
6523
6565
|
confirmed: boolean;
|
|
6524
6566
|
date_start?: string | null;
|
|
@@ -6538,7 +6580,6 @@ declare class Arbi {
|
|
|
6538
6580
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6539
6581
|
external_id: string;
|
|
6540
6582
|
workspace_ext_id: string;
|
|
6541
|
-
pinned: boolean;
|
|
6542
6583
|
shared: boolean;
|
|
6543
6584
|
confirmed: boolean;
|
|
6544
6585
|
date_start?: string | null;
|
|
@@ -6561,7 +6602,6 @@ declare class Arbi {
|
|
|
6561
6602
|
citations?: components["schemas"]["CitationSources"] | null;
|
|
6562
6603
|
external_id: string;
|
|
6563
6604
|
workspace_ext_id: string;
|
|
6564
|
-
pinned: boolean;
|
|
6565
6605
|
shared: boolean;
|
|
6566
6606
|
confirmed: boolean;
|
|
6567
6607
|
date_start?: string | null;
|
|
@@ -7105,6 +7145,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
7105
7145
|
PERSIST_LEARNINGS: boolean;
|
|
7106
7146
|
SKILLS_ENABLED: boolean;
|
|
7107
7147
|
SKILL_CREATION: boolean;
|
|
7148
|
+
WORKSPACE_SETUP: boolean;
|
|
7108
7149
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
7109
7150
|
REMOTE_CONTROL_ENABLED: boolean;
|
|
7110
7151
|
ENABLED_SKILLS?: string[] | null | undefined;
|
|
@@ -7852,4 +7893,4 @@ declare namespace account {
|
|
|
7852
7893
|
export { account_confirmEmailChange as confirmEmailChange, account_requestDeletion as requestDeletion, account_requestEmailChange as requestEmailChange };
|
|
7853
7894
|
}
|
|
7854
7895
|
|
|
7855
|
-
export { type ParsedSlashCommand as $, type ActivityKind as A, type DecryptedDmNotification as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DeferredInterjectionEvent as E, type DmAttachmentFile as F, type DmAttachmentInput as G, type DmCryptoContext as H, type DocNameMap as I, type DocumentAutomationAction as J, type DocumentListFields as K, type DocumentListOrder as L, type DocumentSelector as M, type DocumentWaiter as N, type DocumentWaiterOptions as O, type FactResponse as P, type FactSearchRequest as Q, type FactSearchResponse as R, type FormattedWsMessage as S, type ListAllOptions as T, type ListFactsOptions as U, type ListPaginatedOptions as V, type MailAttachment as W, type MessageLevel as X, type MessageMetadataPayload$1 as Y, type MessageQueuedEvent as Z, type OutputTokensDetails as _, type ActivityResponse as a,
|
|
7896
|
+
export { type ParsedSlashCommand as $, type ActivityKind as A, type DecryptedDmNotification as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type DeferredInterjectionEvent as E, type DmAttachmentFile as F, type DmAttachmentInput as G, type DmCryptoContext as H, type DocNameMap as I, type DocumentAutomationAction as J, type DocumentListFields as K, type DocumentListOrder as L, type DocumentSelector as M, type DocumentWaiter as N, type DocumentWaiterOptions as O, type FactResponse as P, type FactSearchRequest as Q, type FactSearchResponse as R, type FormattedWsMessage as S, type ListAllOptions as T, type ListFactsOptions as U, type ListPaginatedOptions as V, type MailAttachment as W, type MessageLevel as X, type MessageMetadataPayload$1 as Y, type MessageQueuedEvent as Z, type OutputTokensDetails as _, type ActivityResponse as a, conversations as a$, type PendingAuthResponse as a0, type PlanWorkRequest as a1, type ProbeAnswerEvent as a2, type ProjectInvoicesResponse as a3, type ProjectUsageResponse as a4, type QueryOptions as a5, type ReconnectOptions as a6, type ReconnectableWsConnection as a7, type ResolvedCitation as a8, type ResolvedRecipient as a9, type UploadResult as aA, type UserDailyUsageResponse as aB, type UserInfo as aC, type UserInputRequestEvent as aD, type UserMessageEvent as aE, WebSocketAuthError as aF, type WorkStatus as aG, type WorkflowAuthMode as aH, type WorkflowResponse as aI, type WorkflowRunHistoryResponse as aJ, type WorkflowRunResponse as aK, type WorkspaceContext as aL, type WsConnection as aM, account as aN, agentconfig as aO, agents as aP, assistant as aQ, authenticatedFetch as aR, buildDocNameMap as aS, buildFactsContextTool as aT, buildRetrievalChunkTool as aU, buildRetrievalFullContextTool as aV, buildRetrievalTocTool as aW, connectWebSocket as aX, connectWithReconnect as aY, consumeSSEStream as aZ, contacts as a_, type ResponseCompletedEvent as aa, type ResponseContentPartAddedEvent as ab, type ResponseCreatedEvent as ac, type ResponseFailedEvent as ad, type ResponseOutputItemAddedEvent as ae, type ResponseOutputItemDoneEvent as af, type ResponseOutputTextDeltaEvent as ag, type ResponseOutputTextDoneEvent as ah, type ResponseUsage as ai, type SSEEvent as aj, type SSEStreamCallbacks as ak, type SSEStreamResult as al, type SSEStreamStartData as am, SUPPORTED_EXTENSIONS as an, type SkillSummary as ao, type SkippedFile as ap, type SubmitBackgroundQueryOptions as aq, type TaskPlan as ar, type TokenBudgetContext as as, type UpdateConversationRequest as at, type UpdateFactRequest as au, type UpdateWorkflowRequest as av, type UploadBatchResult as aw, type UploadDirectOptions as ax, type UploadDirectResult as ay, type UploadOptions as az, type AgentControlStateEvent as b, countCitations as b0, createAuthenticatedClient as b1, createDocumentWaiter as b2, dm as b3, doctags as b4, documents as b5, facts as b6, files as b7, filterSkills as b8, formatAgentStepLabel as b9, responses as bA, selectWorkspace as bB, selectWorkspaceById as bC, sessions as bD, settings as bE, streamSSE as bF, stripCitationMarkdown as bG, summarizeCitations as bH, tags as bI, work as bJ, workflows as bK, workspaces as bL, formatFileSize as ba, formatItemLabel as bb, formatStreamSummary as bc, formatUserName as bd, formatWorkspaceChoices as be, formatWsMessage as bf, generateEncryptedWorkspaceKey as bg, generateNewWorkspaceKey as bh, getErrorCode as bi, getErrorMessage as bj, getRawWorkspaceKey as bk, health as bl, mail as bm, parseSSEEvents as bn, parseSlashCommand as bo, parseSlashTokenInProgress as bp, performPasswordLogin as bq, performSigningKeyLogin as br, performSsoDeviceFlowLogin as bs, profile as bt, projects as bu, requireData as bv, requireOk as bw, resolveAuth as bx, resolveCitations as by, resolveWorkspace as bz, type AgentStepDeltaEvent as c, type AgentStepEvent as d, Arbi as e, ArbiApiError as f, ArbiError as g, type ArbiErrorEvent as h, type ArbiOptions as i, ArbiSessionExpiredError as j, type ArtifactEvent as k, type AuthContext as l, type AuthHeaders as m, type AuthMode as n, type AuthenticatedClient as o, type CitationSummary as p, type CliConfig as q, type CliCredentials as r, type CommandDescriptor as s, type ConfigStore as t, type ConnectOptions as u, type ConversationResponse as v, type CreateFactRequest as w, type CreateFactsRequest as x, type CreateWorkRequest as y, type CreateWorkflowRequest as z };
|
package/dist/browser.cjs
CHANGED
|
@@ -4891,6 +4891,7 @@ async function updateConversationAssistantMode(arbi, conversationId, assistantMo
|
|
|
4891
4891
|
// src/operations/assistant.ts
|
|
4892
4892
|
var assistant_exports = {};
|
|
4893
4893
|
__export(assistant_exports, {
|
|
4894
|
+
buildFactsContextTool: () => buildFactsContextTool,
|
|
4894
4895
|
buildRetrievalChunkTool: () => buildRetrievalChunkTool,
|
|
4895
4896
|
buildRetrievalFullContextTool: () => buildRetrievalFullContextTool,
|
|
4896
4897
|
buildRetrievalTocTool: () => buildRetrievalTocTool,
|
|
@@ -4920,6 +4921,13 @@ function buildRetrievalFullContextTool(docIds) {
|
|
|
4920
4921
|
tool_responses: {}
|
|
4921
4922
|
};
|
|
4922
4923
|
}
|
|
4924
|
+
function buildFactsContextTool(factIds) {
|
|
4925
|
+
return {
|
|
4926
|
+
name: "facts_context",
|
|
4927
|
+
description: "facts in this chat's context",
|
|
4928
|
+
tool_args: { fact_ext_ids: factIds }
|
|
4929
|
+
};
|
|
4930
|
+
}
|
|
4923
4931
|
function buildRetrievalTocTool(docIds) {
|
|
4924
4932
|
return {
|
|
4925
4933
|
name: "retrieval_toc",
|
|
@@ -6109,7 +6117,6 @@ async function listFacts(arbi, options) {
|
|
|
6109
6117
|
await arbi.fetch.GET("/v1/facts/list", {
|
|
6110
6118
|
params: {
|
|
6111
6119
|
query: {
|
|
6112
|
-
pinned_only: options?.pinnedOnly ?? false,
|
|
6113
6120
|
date_from: options?.from,
|
|
6114
6121
|
date_to: options?.to,
|
|
6115
6122
|
dated_only: options?.datedOnly,
|
|
@@ -7130,6 +7137,7 @@ exports.account = account_exports;
|
|
|
7130
7137
|
exports.agentconfig = agentconfig_exports;
|
|
7131
7138
|
exports.assistant = assistant_exports;
|
|
7132
7139
|
exports.authenticatedFetch = authenticatedFetch;
|
|
7140
|
+
exports.buildFactsContextTool = buildFactsContextTool;
|
|
7133
7141
|
exports.buildRetrievalChunkTool = buildRetrievalChunkTool;
|
|
7134
7142
|
exports.buildRetrievalFullContextTool = buildRetrievalFullContextTool;
|
|
7135
7143
|
exports.buildRetrievalTocTool = buildRetrievalTocTool;
|