@arbidocs/sdk 0.4.66 → 0.4.69

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/index.cjs CHANGED
@@ -5440,6 +5440,7 @@ async function updateConversationAssistantMode(arbi, conversationId, assistantMo
5440
5440
  // src/operations/assistant.ts
5441
5441
  var assistant_exports = {};
5442
5442
  __export(assistant_exports, {
5443
+ buildFactsContextTool: () => buildFactsContextTool,
5443
5444
  buildRetrievalChunkTool: () => buildRetrievalChunkTool,
5444
5445
  buildRetrievalFullContextTool: () => buildRetrievalFullContextTool,
5445
5446
  buildRetrievalTocTool: () => buildRetrievalTocTool,
@@ -5469,6 +5470,13 @@ function buildRetrievalFullContextTool(docIds) {
5469
5470
  tool_responses: {}
5470
5471
  };
5471
5472
  }
5473
+ function buildFactsContextTool(factIds) {
5474
+ return {
5475
+ name: "facts_context",
5476
+ description: "facts in this chat's context",
5477
+ tool_args: { fact_ext_ids: factIds }
5478
+ };
5479
+ }
5472
5480
  function buildRetrievalTocTool(docIds) {
5473
5481
  return {
5474
5482
  name: "retrieval_toc",
@@ -6673,7 +6681,6 @@ async function listFacts(arbi, options) {
6673
6681
  await arbi.fetch.GET("/v1/facts/list", {
6674
6682
  params: {
6675
6683
  query: {
6676
- pinned_only: options?.pinnedOnly ?? false,
6677
6684
  date_from: options?.from,
6678
6685
  date_to: options?.to,
6679
6686
  dated_only: options?.datedOnly,
@@ -8763,6 +8770,7 @@ exports.agents = agents_exports;
8763
8770
  exports.assistant = assistant_exports;
8764
8771
  exports.authenticatedFetch = authenticatedFetch;
8765
8772
  exports.buildDocNameMap = buildDocNameMap;
8773
+ exports.buildFactsContextTool = buildFactsContextTool;
8766
8774
  exports.buildRetrievalChunkTool = buildRetrievalChunkTool;
8767
8775
  exports.buildRetrievalFullContextTool = buildRetrievalFullContextTool;
8768
8776
  exports.buildRetrievalTocTool = buildRetrievalTocTool;