@arbidocs/client 0.3.94 → 0.3.95

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.d.cts CHANGED
@@ -2699,8 +2699,8 @@ interface components {
2699
2699
  LLM_AGENT_TEMPERATURE: number;
2700
2700
  /**
2701
2701
  * Agent Max Tokens
2702
- * @description Maximum tokens for the agent LLM response.
2703
- * @default 10000
2702
+ * @description Max output tokens for the agent LLM response; 0 = uncapped (run to EOS). A finite cap on a reasoning model gets consumed by thinking and truncates the tool call. Input headroom is reserved separately (DEFAULT_OUTPUT_RESERVE_TOKENS).
2703
+ * @default 0
2704
2704
  */
2705
2705
  AGENT_MAX_TOKENS: number;
2706
2706
  /**
@@ -2709,6 +2709,12 @@ interface components {
2709
2709
  * @default false
2710
2710
  */
2711
2711
  ENABLE_THINKING: boolean;
2712
+ /**
2713
+ * Agent Strict Tool Calls
2714
+ * @description Send OpenAI strict function calling (strict=true + additionalProperties=false) for the agent loop, so vLLM grammar-constrains tool-call arguments — malformed-JSON and format-drift tool calls become unrepresentable. Disabled in #1560 because the then-current vLLM aborted strict calls with finish_reason=length; re-enabled after the tool_call_harness measured 100% correct/valid native calls with 0 aborts across Wise+Fast, heavy/light context, thinking on/off. Flag kept so ops can disable if a future model/serving stack regresses.
2715
+ * @default true
2716
+ */
2717
+ AGENT_STRICT_TOOL_CALLS: boolean;
2712
2718
  /**
2713
2719
  * Agent Max Iterations
2714
2720
  * @description Maximum number of tool call iterations before forcing an answer.
@@ -2832,8 +2838,9 @@ interface components {
2832
2838
  * "AGENT_MODEL_NAME": "auto",
2833
2839
  * "AGENT_API_TYPE": "remote",
2834
2840
  * "LLM_AGENT_TEMPERATURE": 0.6,
2835
- * "AGENT_MAX_TOKENS": 10000,
2841
+ * "AGENT_MAX_TOKENS": 0,
2836
2842
  * "ENABLE_THINKING": false,
2843
+ * "AGENT_STRICT_TOOL_CALLS": true,
2837
2844
  * "AGENT_MAX_ITERATIONS": 20,
2838
2845
  * "AGENT_MAX_PARALLEL_TOOL_CALLS": 10,
2839
2846
  * "AGENT_HISTORY_CHAR_THRESHOLD": 8000,
@@ -2849,7 +2856,7 @@ interface components {
2849
2856
  * "SYSTEM_INSTRUCTION": "You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.Be concise. Use markdown where it helps readability. Cross-check information across sources before answering. Never fabricate facts. Not all assertions in the sources are factual — some are arguments by a party. Attribute claims to their source, especially where parties disagree.",
2850
2857
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
2851
2858
  * "TEMPERATURE": 0.1,
2852
- * "MAX_TOKENS": 5000
2859
+ * "MAX_TOKENS": 0
2853
2860
  * }
2854
2861
  */
2855
2862
  QueryLLM: components['schemas']['QueryLLMConfig'];
@@ -2860,7 +2867,7 @@ interface components {
2860
2867
  * "MODEL_NAME": "Wise",
2861
2868
  * "SYSTEM_INSTRUCTION": "You are reviewing a draft answer prepared by a research agent. The draft was written based on summaries, but you now have access to the full source material.\n\nYour task:\n1. Review the draft answer against the source material provided\n2. Verify claims are supported by the sources\n3. Correct any inaccuracies or unsupported statements\n4. Add any important details from the sources that were missed\n5. Maintain formal, objective tone appropriate for professional contexts\n\nIf information is not found in the sources but the draft answer is based on web search results or general knowledge, preserve it and ensure it is clearly labelled as such. Only flag missing source support for claims that purport to come from the documents.\nDo not add inline citation markers - the system handles citations automatically.",
2862
2869
  * "TEMPERATURE": 0.1,
2863
- * "MAX_TOKENS": 5000,
2870
+ * "MAX_TOKENS": 0,
2864
2871
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000
2865
2872
  * }
2866
2873
  */
@@ -2872,7 +2879,7 @@ interface components {
2872
2879
  * "MODEL_NAME": "Fast",
2873
2880
  * "SYSTEM_INSTRUCTION": "You are a chunk evaluator. Analyze retrieved chunks to determine which are relevant to the user's query and extract key learnings from the RELEVANT chunks only. You must return your response as valid JSON matching the provided schema.",
2874
2881
  * "TEMPERATURE": 0.1,
2875
- * "MAX_TOKENS": 20000,
2882
+ * "MAX_TOKENS": 0,
2876
2883
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000
2877
2884
  * }
2878
2885
  */
@@ -2896,7 +2903,7 @@ interface components {
2896
2903
  * "MODEL_NAME": "Wise",
2897
2904
  * "SYSTEM_INSTRUCTION": "You are a conversation summariser. Condense the conversation history into a concise summary that preserves:\n- Key decisions and conclusions reached\n- Specific names, dates, numbers, and document references\n- Open questions and unresolved items\n- The user's goals and constraints\n\nWrite in past tense, third person. Be specific, not vague. Do not omit important details in favour of brevity.",
2898
2905
  * "TEMPERATURE": 0.1,
2899
- * "MAX_TOKENS": 2000,
2906
+ * "MAX_TOKENS": 0,
2900
2907
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
2901
2908
  * "COMPACTION_THRESHOLD_TOKENS": 0,
2902
2909
  * "COMPACTION_KEEP_RECENT": 4
@@ -2911,7 +2918,7 @@ interface components {
2911
2918
  * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based strictly on document content.\n\nGuidelines:\n- Only use information explicitly stated in the document\n- Do not infer or assume information not present\n- If information is not found, respond with \"Information not found in document.\"\n- Follow format instructions exactly for each answer\n- Be concise and precise\n- Output answers as plain text only. Do not use Markdown or any other formatting:\n - Do not bold, italicize, or otherwise emphasize any part of the answer.\n - Do not include asterisks (*), underscores (_), backticks (`), or other Markdown markers.\n - Do not prefix answers with bullets, dashes (-), or numbered/lettered enumeration (e.g. \"1.\", \"a)\").\n - Write multi-point answers as flowing sentences, not as a list.",
2912
2919
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
2913
2920
  * "TEMPERATURE": 0.1,
2914
- * "MAX_TOKENS": 2000,
2921
+ * "MAX_TOKENS": 0,
2915
2922
  * "MAX_CONCURRENT_DOCS": 10,
2916
2923
  * "AUTO_RENAME": false,
2917
2924
  * "AUTO_RENAME_INSTRUCTION": "Create a short substantive title for the document of no more than 10 words. E.g. \"Email from X to Y re ABC\", \"Service Agreement between A and B\".",
@@ -2971,7 +2978,7 @@ interface components {
2971
2978
  * "MODEL_NAME": "Wise",
2972
2979
  * "SYSTEM_INSTRUCTION": "You are a knowledge synthesizer. You receive the full agent scratchpad from a completed conversation and decide what, if anything, is worth saving.\n\n## Work Product Types\n- **\"memory\"**: Facts, findings, reference data — for *looking up* information.\n- **\"skill\"**: Procedures, workflows, step-by-step instructions — for *doing* something.\n\nWhen ambiguous, default to memory.\n\n## Rules\n- Return an empty work_products array if the conversation is trivial or produced nothing substantive.\n- Each work product must cover ONE coherent topic. Never combine disparate subjects into a single document — create separate documents for each distinct topic.\n- Ground everything in the provided context. Do not invent information.\n- Be concise. These are reference documents, not essays.\n\n## Output Format\nJSON with a `work_products` array. Each item has `wp_type`, `title`, and `content` (markdown).\n\nMemory content: `# Title`, date, source, key findings as bullets, source documents.\nSkill content: `# Title`, prerequisites, numbered steps, when to apply.",
2973
2980
  * "TEMPERATURE": 0.3,
2974
- * "MAX_TOKENS": 8000,
2981
+ * "MAX_TOKENS": 0,
2975
2982
  * "MAX_TOKEN_CONTEXT": 200000,
2976
2983
  * "MAX_CONCURRENT": 5
2977
2984
  * }
@@ -2984,7 +2991,7 @@ interface components {
2984
2991
  * "MODEL_NAME": "Wise",
2985
2992
  * "SYSTEM_INSTRUCTION": "You are a research planning assistant. Your job is to analyze a user query and produce a concise, numbered research plan.\n\nYou have access to a workspace of documents. The available tools for executing the plan are:\n- search_inside_documents: Search workspace documents for relevant passages (semantic, keyword, or hybrid). Use digest=true to extract learnings.\n- read_document: Read page ranges or entire documents. Use digest=true to extract learnings with citations.\n- get_table_of_contents: Get document headings with page references\n\nConsider:\n- What information is needed to answer the query\n- Which documents are likely relevant based on the document index\n- What search queries and document passages to examine\n- What order of operations will be most efficient\n- Whether parallel searches can be used for different aspects\n\nRespond with ONLY the plan (numbered steps). Do not execute any steps.",
2986
2993
  * "TEMPERATURE": 0.3,
2987
- * "MAX_TOKENS": 4000,
2994
+ * "MAX_TOKENS": 0,
2988
2995
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
2989
2996
  * "APPROVAL_TIMEOUT": 0
2990
2997
  * }
@@ -2997,7 +3004,7 @@ interface components {
2997
3004
  * "MODEL_NAME": "Fast",
2998
3005
  * "SYSTEM_INSTRUCTION": "You are a context selector. Given a user's query, conversation history, and a table of available documents, determine the user's goal and select relevant context.\n\n## Instructions\n\n1. **goal**: 1-2 concise sentences describing the user's intent AND your filtering rationale. Explain what documents are needed and why. Examples:\n - \"The user is greeting the assistant. No documents are needed.\"\n - \"The user wants to find force majeure clauses. Only the three contracts are relevant, so I will keep only those.\"\n - \"The user wants a full timeline of the case. Most documents are relevant, so I will drop only the unrelated procedural orders.\"\n\n2. **doc_filter_mode** and **doc_ids**: Select which documents the agent needs.\n - `\"keep\"` mode: `doc_ids` lists the ONLY docs to keep. Everything else is dropped.\n - `\"drop\"` mode: `doc_ids` lists the ONLY docs to drop. Everything else is kept.\n - Pick whichever mode produces the **shorter `doc_ids` list**.\n - Doc IDs are in the **Id** column of the Available Documents table (e.g. `\"doc-abc12345\"`). Copy them **exactly** from the table — do not invent, guess, or modify IDs.\n\n | Scenario | doc_filter_mode | doc_ids |\n |----------|----------------|---------|\n | Need ALL docs | `\"drop\"` | `[]` |\n | Need NO docs | `\"keep\"` | `[]` |\n | Need 3 of 100 docs | `\"keep\"` | `[\"id1\",\"id2\",\"id3\"]` |\n | Drop 3 of 100 docs | `\"drop\"` | `[\"id1\",\"id2\",\"id3\"]` |\n\n3. **chat_range_start** and **chat_range_end**: 0-based inclusive range of earlier history messages that provide relevant context. The last 3 messages are always included automatically. Set both to -1 if no earlier history is needed.\n\n## Rules\n\n- **Never repeat a doc ID.** Each ID must appear at most once.\n- Before writing `doc_ids`, count how many you would keep vs drop, then pick the shorter list.\n- Greetings or meta-questions about the assistant (e.g. \"hello\", \"who are you?\", \"what can you do?\"): the agent does NOT need any documents → `\"keep\"` with `[]`.\n- Ambiguous references like \"the document\" or \"this contract\" without specifying which: keep all → `\"drop\"` with `[]`.\n- For follow-up questions, include history messages that establish the topic.\n- Always return valid JSON matching the schema.",
2999
3006
  * "TEMPERATURE": 0,
3000
- * "MAX_TOKENS": 3000
3007
+ * "MAX_TOKENS": 0
3001
3008
  * }
3002
3009
  */
3003
3010
  FilterPlanLLM: components['schemas']['FilterPlanLLMConfig'];
@@ -3007,7 +3014,7 @@ interface components {
3007
3014
  * "ENABLE_THINKING": false,
3008
3015
  * "MODEL_NAME": "Fast",
3009
3016
  * "TEMPERATURE": 0.1,
3010
- * "MAX_TOKENS": 4000,
3017
+ * "MAX_TOKENS": 0,
3011
3018
  * "MAX_PAGES_PER_CALL": 5,
3012
3019
  * "IMAGE_MAX_DIMENSION": 1280
3013
3020
  * }
@@ -3020,7 +3027,7 @@ interface components {
3020
3027
  * "MODEL_NAME": "Premium",
3021
3028
  * "SYSTEM_INSTRUCTION": "You are a code execution agent. You write and run code to accomplish tasks.\n\nYou have access to an execute_code tool that runs code in a sandboxed Docker container.\n\nThe sandbox has:\n- Python 3.12 with numpy, pandas, matplotlib, requests, beautifulsoup4,\n httpx, pillow, sympy, pyyaml (plus uv for installing more)\n- Node.js 22 with TypeScript (ts-node) and npm\n- Bash with git, curl, wget, jq, sqlite3, build-essential\n- Network access (can pip/npm install additional packages)\n\nInstructions:\n1. Write clean, correct code to accomplish the user's task\n2. Always call execute_code to run your code — never guess the output\n3. If execution errors, analyze the traceback, fix the code, and retry\n4. Once you have the correct output, respond with ONLY the final result\n\nKeep code simple and direct. Prefer Python unless the task specifically requires another language.",
3022
3029
  * "TEMPERATURE": 0.2,
3023
- * "MAX_TOKENS": 8000,
3030
+ * "MAX_TOKENS": 0,
3024
3031
  * "MAX_ITERATIONS": 3
3025
3032
  * }
3026
3033
  */
@@ -3041,6 +3048,7 @@ interface components {
3041
3048
  * "HYBRID_DENSE_WEIGHT": 0.7,
3042
3049
  * "HYBRID_PREFETCH_LIMIT": 500,
3043
3050
  * "HYBRID_SPARSE_WEIGHT": 0.3,
3051
+ * "KEYWORD_MIN_TERM_OVERLAP_RATIO": 0.3,
3044
3052
  * "MAX_DISTINCT_DOCUMENTS": 200,
3045
3053
  * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 400,
3046
3054
  * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
@@ -3051,6 +3059,7 @@ interface components {
3051
3059
  * "HYBRID_DENSE_WEIGHT": 0.7,
3052
3060
  * "HYBRID_PREFETCH_LIMIT": 10000,
3053
3061
  * "HYBRID_SPARSE_WEIGHT": 0.3,
3062
+ * "KEYWORD_MIN_TERM_OVERLAP_RATIO": 0.3,
3054
3063
  * "MAX_DISTINCT_DOCUMENTS": 100000,
3055
3064
  * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 100000,
3056
3065
  * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
@@ -3578,7 +3587,8 @@ interface components {
3578
3587
  TEMPERATURE: number;
3579
3588
  /**
3580
3589
  * Max Tokens
3581
- * @default 8000
3590
+ * @description Max output tokens; 0 = uncapped (run to EOS).
3591
+ * @default 0
3582
3592
  */
3583
3593
  MAX_TOKENS: number;
3584
3594
  /**
@@ -3712,7 +3722,9 @@ interface components {
3712
3722
  DoctagLLM?: components['schemas']['DoctagLLMConfig'] | null;
3713
3723
  MemoryLLM?: components['schemas']['MemoryLLMConfig'] | null;
3714
3724
  PlanningLLM?: components['schemas']['PlanningLLMConfig'] | null;
3725
+ FilterPlanLLM?: components['schemas']['FilterPlanLLMConfig'] | null;
3715
3726
  VisionLLM?: components['schemas']['VisionLLMConfig'] | null;
3727
+ CodeAgent?: components['schemas']['CodeAgentConfig'] | null;
3716
3728
  ModelCitation?: components['schemas']['ModelCitationConfig'] | null;
3717
3729
  Parser?: components['schemas']['ParserConfig'] | null;
3718
3730
  Chunker?: components['schemas']['ChunkerConfig'] | null;
@@ -4492,8 +4504,8 @@ interface components {
4492
4504
  TEMPERATURE: number;
4493
4505
  /**
4494
4506
  * Max Tokens
4495
- * @description Maximum number of tokens allowed for all answers.
4496
- * @default 2000
4507
+ * @description Max output tokens for all answers; 0 = uncapped (run to EOS).
4508
+ * @default 0
4497
4509
  */
4498
4510
  MAX_TOKENS: number;
4499
4511
  /**
@@ -4696,8 +4708,8 @@ interface components {
4696
4708
  TEMPERATURE: number;
4697
4709
  /**
4698
4710
  * Max Tokens
4699
- * @description Maximum tokens for evaluation response.
4700
- * @default 20000
4711
+ * @description Max output tokens for evaluation; 0 = uncapped (run to EOS).
4712
+ * @default 0
4701
4713
  */
4702
4714
  MAX_TOKENS: number;
4703
4715
  /**
@@ -4856,7 +4868,8 @@ interface components {
4856
4868
  TEMPERATURE: number;
4857
4869
  /**
4858
4870
  * Max Tokens
4859
- * @default 3000
4871
+ * @description Max output tokens; 0 = uncapped (run to EOS).
4872
+ * @default 0
4860
4873
  */
4861
4874
  MAX_TOKENS: number;
4862
4875
  };
@@ -5176,8 +5189,8 @@ interface components {
5176
5189
  TEMPERATURE: number;
5177
5190
  /**
5178
5191
  * Max Tokens
5179
- * @description Maximum tokens for memory content.
5180
- * @default 8000
5192
+ * @description Max output tokens for memory content; 0 = uncapped (run to EOS).
5193
+ * @default 0
5181
5194
  */
5182
5195
  MAX_TOKENS: number;
5183
5196
  /**
@@ -5883,8 +5896,8 @@ interface components {
5883
5896
  TEMPERATURE: number;
5884
5897
  /**
5885
5898
  * Max Tokens
5886
- * @description Maximum tokens for the plan output.
5887
- * @default 4000
5899
+ * @description Max output tokens for the plan; 0 = uncapped (run to EOS).
5900
+ * @default 0
5888
5901
  */
5889
5902
  MAX_TOKENS: number;
5890
5903
  /**
@@ -6222,8 +6235,8 @@ interface components {
6222
6235
  TEMPERATURE: number;
6223
6236
  /**
6224
6237
  * Max Tokens
6225
- * @description Maximum number of tokens allowed.
6226
- * @default 5000
6238
+ * @description Max output tokens; 0 = uncapped (run to EOS).
6239
+ * @default 0
6227
6240
  */
6228
6241
  MAX_TOKENS: number;
6229
6242
  };
@@ -7086,6 +7099,12 @@ interface components {
7086
7099
  * @default 0.1
7087
7100
  */
7088
7101
  MIN_RETRIEVAL_SIM_SCORE: number;
7102
+ /**
7103
+ * Keyword Min Term Overlap Ratio
7104
+ * @description KEYWORD-mode minimum-should-match: a result must contain at least ceil(ratio * #distinct query terms) of the query's stemmed, stopword-filtered terms (floor 1). Rejects spurious single-incidental-token BM25 matches without a semantic reranker. 0 disables the floor.
7105
+ * @default 0.3
7106
+ */
7107
+ KEYWORD_MIN_TERM_OVERLAP_RATIO: number;
7089
7108
  /**
7090
7109
  * Max Distinct Documents
7091
7110
  * @description Maximum number of distinct documents to search for.
@@ -7176,8 +7195,8 @@ interface components {
7176
7195
  TEMPERATURE: number;
7177
7196
  /**
7178
7197
  * Max Tokens
7179
- * @description Maximum tokens for review response.
7180
- * @default 5000
7198
+ * @description Max output tokens for review; 0 = uncapped (run to EOS).
7199
+ * @default 0
7181
7200
  */
7182
7201
  MAX_TOKENS: number;
7183
7202
  /**
@@ -7710,8 +7729,8 @@ interface components {
7710
7729
  TEMPERATURE: number;
7711
7730
  /**
7712
7731
  * Max Tokens
7713
- * @description Maximum tokens for the summary output.
7714
- * @default 2000
7732
+ * @description Max output tokens for the summary; 0 = uncapped (run to EOS).
7733
+ * @default 0
7715
7734
  */
7716
7735
  MAX_TOKENS: number;
7717
7736
  /**
@@ -7748,6 +7767,14 @@ interface components {
7748
7767
  name: string;
7749
7768
  /** Columns */
7750
7769
  columns: string[];
7770
+ /** Column Widths */
7771
+ column_widths?: {
7772
+ [key: string]: number;
7773
+ } | null;
7774
+ /** Tile Size */
7775
+ tile_size?: number | null;
7776
+ /** Row Height */
7777
+ row_height?: number | null;
7751
7778
  };
7752
7779
  /**
7753
7780
  * TagBreakdown
@@ -8699,8 +8726,8 @@ interface components {
8699
8726
  TEMPERATURE: number;
8700
8727
  /**
8701
8728
  * Max Tokens
8702
- * @description Maximum tokens for the vision response.
8703
- * @default 4000
8729
+ * @description Max output tokens for the vision response; 0 = uncapped (run to EOS).
8730
+ * @default 0
8704
8731
  */
8705
8732
  MAX_TOKENS: number;
8706
8733
  /**
package/dist/index.d.ts CHANGED
@@ -2699,8 +2699,8 @@ interface components {
2699
2699
  LLM_AGENT_TEMPERATURE: number;
2700
2700
  /**
2701
2701
  * Agent Max Tokens
2702
- * @description Maximum tokens for the agent LLM response.
2703
- * @default 10000
2702
+ * @description Max output tokens for the agent LLM response; 0 = uncapped (run to EOS). A finite cap on a reasoning model gets consumed by thinking and truncates the tool call. Input headroom is reserved separately (DEFAULT_OUTPUT_RESERVE_TOKENS).
2703
+ * @default 0
2704
2704
  */
2705
2705
  AGENT_MAX_TOKENS: number;
2706
2706
  /**
@@ -2709,6 +2709,12 @@ interface components {
2709
2709
  * @default false
2710
2710
  */
2711
2711
  ENABLE_THINKING: boolean;
2712
+ /**
2713
+ * Agent Strict Tool Calls
2714
+ * @description Send OpenAI strict function calling (strict=true + additionalProperties=false) for the agent loop, so vLLM grammar-constrains tool-call arguments — malformed-JSON and format-drift tool calls become unrepresentable. Disabled in #1560 because the then-current vLLM aborted strict calls with finish_reason=length; re-enabled after the tool_call_harness measured 100% correct/valid native calls with 0 aborts across Wise+Fast, heavy/light context, thinking on/off. Flag kept so ops can disable if a future model/serving stack regresses.
2715
+ * @default true
2716
+ */
2717
+ AGENT_STRICT_TOOL_CALLS: boolean;
2712
2718
  /**
2713
2719
  * Agent Max Iterations
2714
2720
  * @description Maximum number of tool call iterations before forcing an answer.
@@ -2832,8 +2838,9 @@ interface components {
2832
2838
  * "AGENT_MODEL_NAME": "auto",
2833
2839
  * "AGENT_API_TYPE": "remote",
2834
2840
  * "LLM_AGENT_TEMPERATURE": 0.6,
2835
- * "AGENT_MAX_TOKENS": 10000,
2841
+ * "AGENT_MAX_TOKENS": 0,
2836
2842
  * "ENABLE_THINKING": false,
2843
+ * "AGENT_STRICT_TOOL_CALLS": true,
2837
2844
  * "AGENT_MAX_ITERATIONS": 20,
2838
2845
  * "AGENT_MAX_PARALLEL_TOOL_CALLS": 10,
2839
2846
  * "AGENT_HISTORY_CHAR_THRESHOLD": 8000,
@@ -2849,7 +2856,7 @@ interface components {
2849
2856
  * "SYSTEM_INSTRUCTION": "You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.Be concise. Use markdown where it helps readability. Cross-check information across sources before answering. Never fabricate facts. Not all assertions in the sources are factual — some are arguments by a party. Attribute claims to their source, especially where parties disagree.",
2850
2857
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
2851
2858
  * "TEMPERATURE": 0.1,
2852
- * "MAX_TOKENS": 5000
2859
+ * "MAX_TOKENS": 0
2853
2860
  * }
2854
2861
  */
2855
2862
  QueryLLM: components['schemas']['QueryLLMConfig'];
@@ -2860,7 +2867,7 @@ interface components {
2860
2867
  * "MODEL_NAME": "Wise",
2861
2868
  * "SYSTEM_INSTRUCTION": "You are reviewing a draft answer prepared by a research agent. The draft was written based on summaries, but you now have access to the full source material.\n\nYour task:\n1. Review the draft answer against the source material provided\n2. Verify claims are supported by the sources\n3. Correct any inaccuracies or unsupported statements\n4. Add any important details from the sources that were missed\n5. Maintain formal, objective tone appropriate for professional contexts\n\nIf information is not found in the sources but the draft answer is based on web search results or general knowledge, preserve it and ensure it is clearly labelled as such. Only flag missing source support for claims that purport to come from the documents.\nDo not add inline citation markers - the system handles citations automatically.",
2862
2869
  * "TEMPERATURE": 0.1,
2863
- * "MAX_TOKENS": 5000,
2870
+ * "MAX_TOKENS": 0,
2864
2871
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000
2865
2872
  * }
2866
2873
  */
@@ -2872,7 +2879,7 @@ interface components {
2872
2879
  * "MODEL_NAME": "Fast",
2873
2880
  * "SYSTEM_INSTRUCTION": "You are a chunk evaluator. Analyze retrieved chunks to determine which are relevant to the user's query and extract key learnings from the RELEVANT chunks only. You must return your response as valid JSON matching the provided schema.",
2874
2881
  * "TEMPERATURE": 0.1,
2875
- * "MAX_TOKENS": 20000,
2882
+ * "MAX_TOKENS": 0,
2876
2883
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000
2877
2884
  * }
2878
2885
  */
@@ -2896,7 +2903,7 @@ interface components {
2896
2903
  * "MODEL_NAME": "Wise",
2897
2904
  * "SYSTEM_INSTRUCTION": "You are a conversation summariser. Condense the conversation history into a concise summary that preserves:\n- Key decisions and conclusions reached\n- Specific names, dates, numbers, and document references\n- Open questions and unresolved items\n- The user's goals and constraints\n\nWrite in past tense, third person. Be specific, not vague. Do not omit important details in favour of brevity.",
2898
2905
  * "TEMPERATURE": 0.1,
2899
- * "MAX_TOKENS": 2000,
2906
+ * "MAX_TOKENS": 0,
2900
2907
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
2901
2908
  * "COMPACTION_THRESHOLD_TOKENS": 0,
2902
2909
  * "COMPACTION_KEEP_RECENT": 4
@@ -2911,7 +2918,7 @@ interface components {
2911
2918
  * "SYSTEM_INSTRUCTION": "You are a document analysis assistant. Answer questions based strictly on document content.\n\nGuidelines:\n- Only use information explicitly stated in the document\n- Do not infer or assume information not present\n- If information is not found, respond with \"Information not found in document.\"\n- Follow format instructions exactly for each answer\n- Be concise and precise\n- Output answers as plain text only. Do not use Markdown or any other formatting:\n - Do not bold, italicize, or otherwise emphasize any part of the answer.\n - Do not include asterisks (*), underscores (_), backticks (`), or other Markdown markers.\n - Do not prefix answers with bullets, dashes (-), or numbered/lettered enumeration (e.g. \"1.\", \"a)\").\n - Write multi-point answers as flowing sentences, not as a list.",
2912
2919
  * "MAX_TOKEN_CONTEXT_TO_ANSWER": 200000,
2913
2920
  * "TEMPERATURE": 0.1,
2914
- * "MAX_TOKENS": 2000,
2921
+ * "MAX_TOKENS": 0,
2915
2922
  * "MAX_CONCURRENT_DOCS": 10,
2916
2923
  * "AUTO_RENAME": false,
2917
2924
  * "AUTO_RENAME_INSTRUCTION": "Create a short substantive title for the document of no more than 10 words. E.g. \"Email from X to Y re ABC\", \"Service Agreement between A and B\".",
@@ -2971,7 +2978,7 @@ interface components {
2971
2978
  * "MODEL_NAME": "Wise",
2972
2979
  * "SYSTEM_INSTRUCTION": "You are a knowledge synthesizer. You receive the full agent scratchpad from a completed conversation and decide what, if anything, is worth saving.\n\n## Work Product Types\n- **\"memory\"**: Facts, findings, reference data — for *looking up* information.\n- **\"skill\"**: Procedures, workflows, step-by-step instructions — for *doing* something.\n\nWhen ambiguous, default to memory.\n\n## Rules\n- Return an empty work_products array if the conversation is trivial or produced nothing substantive.\n- Each work product must cover ONE coherent topic. Never combine disparate subjects into a single document — create separate documents for each distinct topic.\n- Ground everything in the provided context. Do not invent information.\n- Be concise. These are reference documents, not essays.\n\n## Output Format\nJSON with a `work_products` array. Each item has `wp_type`, `title`, and `content` (markdown).\n\nMemory content: `# Title`, date, source, key findings as bullets, source documents.\nSkill content: `# Title`, prerequisites, numbered steps, when to apply.",
2973
2980
  * "TEMPERATURE": 0.3,
2974
- * "MAX_TOKENS": 8000,
2981
+ * "MAX_TOKENS": 0,
2975
2982
  * "MAX_TOKEN_CONTEXT": 200000,
2976
2983
  * "MAX_CONCURRENT": 5
2977
2984
  * }
@@ -2984,7 +2991,7 @@ interface components {
2984
2991
  * "MODEL_NAME": "Wise",
2985
2992
  * "SYSTEM_INSTRUCTION": "You are a research planning assistant. Your job is to analyze a user query and produce a concise, numbered research plan.\n\nYou have access to a workspace of documents. The available tools for executing the plan are:\n- search_inside_documents: Search workspace documents for relevant passages (semantic, keyword, or hybrid). Use digest=true to extract learnings.\n- read_document: Read page ranges or entire documents. Use digest=true to extract learnings with citations.\n- get_table_of_contents: Get document headings with page references\n\nConsider:\n- What information is needed to answer the query\n- Which documents are likely relevant based on the document index\n- What search queries and document passages to examine\n- What order of operations will be most efficient\n- Whether parallel searches can be used for different aspects\n\nRespond with ONLY the plan (numbered steps). Do not execute any steps.",
2986
2993
  * "TEMPERATURE": 0.3,
2987
- * "MAX_TOKENS": 4000,
2994
+ * "MAX_TOKENS": 0,
2988
2995
  * "MAX_TOKEN_SIZE_TO_ANSWER": 200000,
2989
2996
  * "APPROVAL_TIMEOUT": 0
2990
2997
  * }
@@ -2997,7 +3004,7 @@ interface components {
2997
3004
  * "MODEL_NAME": "Fast",
2998
3005
  * "SYSTEM_INSTRUCTION": "You are a context selector. Given a user's query, conversation history, and a table of available documents, determine the user's goal and select relevant context.\n\n## Instructions\n\n1. **goal**: 1-2 concise sentences describing the user's intent AND your filtering rationale. Explain what documents are needed and why. Examples:\n - \"The user is greeting the assistant. No documents are needed.\"\n - \"The user wants to find force majeure clauses. Only the three contracts are relevant, so I will keep only those.\"\n - \"The user wants a full timeline of the case. Most documents are relevant, so I will drop only the unrelated procedural orders.\"\n\n2. **doc_filter_mode** and **doc_ids**: Select which documents the agent needs.\n - `\"keep\"` mode: `doc_ids` lists the ONLY docs to keep. Everything else is dropped.\n - `\"drop\"` mode: `doc_ids` lists the ONLY docs to drop. Everything else is kept.\n - Pick whichever mode produces the **shorter `doc_ids` list**.\n - Doc IDs are in the **Id** column of the Available Documents table (e.g. `\"doc-abc12345\"`). Copy them **exactly** from the table — do not invent, guess, or modify IDs.\n\n | Scenario | doc_filter_mode | doc_ids |\n |----------|----------------|---------|\n | Need ALL docs | `\"drop\"` | `[]` |\n | Need NO docs | `\"keep\"` | `[]` |\n | Need 3 of 100 docs | `\"keep\"` | `[\"id1\",\"id2\",\"id3\"]` |\n | Drop 3 of 100 docs | `\"drop\"` | `[\"id1\",\"id2\",\"id3\"]` |\n\n3. **chat_range_start** and **chat_range_end**: 0-based inclusive range of earlier history messages that provide relevant context. The last 3 messages are always included automatically. Set both to -1 if no earlier history is needed.\n\n## Rules\n\n- **Never repeat a doc ID.** Each ID must appear at most once.\n- Before writing `doc_ids`, count how many you would keep vs drop, then pick the shorter list.\n- Greetings or meta-questions about the assistant (e.g. \"hello\", \"who are you?\", \"what can you do?\"): the agent does NOT need any documents → `\"keep\"` with `[]`.\n- Ambiguous references like \"the document\" or \"this contract\" without specifying which: keep all → `\"drop\"` with `[]`.\n- For follow-up questions, include history messages that establish the topic.\n- Always return valid JSON matching the schema.",
2999
3006
  * "TEMPERATURE": 0,
3000
- * "MAX_TOKENS": 3000
3007
+ * "MAX_TOKENS": 0
3001
3008
  * }
3002
3009
  */
3003
3010
  FilterPlanLLM: components['schemas']['FilterPlanLLMConfig'];
@@ -3007,7 +3014,7 @@ interface components {
3007
3014
  * "ENABLE_THINKING": false,
3008
3015
  * "MODEL_NAME": "Fast",
3009
3016
  * "TEMPERATURE": 0.1,
3010
- * "MAX_TOKENS": 4000,
3017
+ * "MAX_TOKENS": 0,
3011
3018
  * "MAX_PAGES_PER_CALL": 5,
3012
3019
  * "IMAGE_MAX_DIMENSION": 1280
3013
3020
  * }
@@ -3020,7 +3027,7 @@ interface components {
3020
3027
  * "MODEL_NAME": "Premium",
3021
3028
  * "SYSTEM_INSTRUCTION": "You are a code execution agent. You write and run code to accomplish tasks.\n\nYou have access to an execute_code tool that runs code in a sandboxed Docker container.\n\nThe sandbox has:\n- Python 3.12 with numpy, pandas, matplotlib, requests, beautifulsoup4,\n httpx, pillow, sympy, pyyaml (plus uv for installing more)\n- Node.js 22 with TypeScript (ts-node) and npm\n- Bash with git, curl, wget, jq, sqlite3, build-essential\n- Network access (can pip/npm install additional packages)\n\nInstructions:\n1. Write clean, correct code to accomplish the user's task\n2. Always call execute_code to run your code — never guess the output\n3. If execution errors, analyze the traceback, fix the code, and retry\n4. Once you have the correct output, respond with ONLY the final result\n\nKeep code simple and direct. Prefer Python unless the task specifically requires another language.",
3022
3029
  * "TEMPERATURE": 0.2,
3023
- * "MAX_TOKENS": 8000,
3030
+ * "MAX_TOKENS": 0,
3024
3031
  * "MAX_ITERATIONS": 3
3025
3032
  * }
3026
3033
  */
@@ -3041,6 +3048,7 @@ interface components {
3041
3048
  * "HYBRID_DENSE_WEIGHT": 0.7,
3042
3049
  * "HYBRID_PREFETCH_LIMIT": 500,
3043
3050
  * "HYBRID_SPARSE_WEIGHT": 0.3,
3051
+ * "KEYWORD_MIN_TERM_OVERLAP_RATIO": 0.3,
3044
3052
  * "MAX_DISTINCT_DOCUMENTS": 200,
3045
3053
  * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 400,
3046
3054
  * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
@@ -3051,6 +3059,7 @@ interface components {
3051
3059
  * "HYBRID_DENSE_WEIGHT": 0.7,
3052
3060
  * "HYBRID_PREFETCH_LIMIT": 10000,
3053
3061
  * "HYBRID_SPARSE_WEIGHT": 0.3,
3062
+ * "KEYWORD_MIN_TERM_OVERLAP_RATIO": 0.3,
3054
3063
  * "MAX_DISTINCT_DOCUMENTS": 100000,
3055
3064
  * "MAX_TOTAL_CHUNKS_TO_RETRIEVE": 100000,
3056
3065
  * "MIN_RETRIEVAL_SIM_SCORE": 0.1,
@@ -3578,7 +3587,8 @@ interface components {
3578
3587
  TEMPERATURE: number;
3579
3588
  /**
3580
3589
  * Max Tokens
3581
- * @default 8000
3590
+ * @description Max output tokens; 0 = uncapped (run to EOS).
3591
+ * @default 0
3582
3592
  */
3583
3593
  MAX_TOKENS: number;
3584
3594
  /**
@@ -3712,7 +3722,9 @@ interface components {
3712
3722
  DoctagLLM?: components['schemas']['DoctagLLMConfig'] | null;
3713
3723
  MemoryLLM?: components['schemas']['MemoryLLMConfig'] | null;
3714
3724
  PlanningLLM?: components['schemas']['PlanningLLMConfig'] | null;
3725
+ FilterPlanLLM?: components['schemas']['FilterPlanLLMConfig'] | null;
3715
3726
  VisionLLM?: components['schemas']['VisionLLMConfig'] | null;
3727
+ CodeAgent?: components['schemas']['CodeAgentConfig'] | null;
3716
3728
  ModelCitation?: components['schemas']['ModelCitationConfig'] | null;
3717
3729
  Parser?: components['schemas']['ParserConfig'] | null;
3718
3730
  Chunker?: components['schemas']['ChunkerConfig'] | null;
@@ -4492,8 +4504,8 @@ interface components {
4492
4504
  TEMPERATURE: number;
4493
4505
  /**
4494
4506
  * Max Tokens
4495
- * @description Maximum number of tokens allowed for all answers.
4496
- * @default 2000
4507
+ * @description Max output tokens for all answers; 0 = uncapped (run to EOS).
4508
+ * @default 0
4497
4509
  */
4498
4510
  MAX_TOKENS: number;
4499
4511
  /**
@@ -4696,8 +4708,8 @@ interface components {
4696
4708
  TEMPERATURE: number;
4697
4709
  /**
4698
4710
  * Max Tokens
4699
- * @description Maximum tokens for evaluation response.
4700
- * @default 20000
4711
+ * @description Max output tokens for evaluation; 0 = uncapped (run to EOS).
4712
+ * @default 0
4701
4713
  */
4702
4714
  MAX_TOKENS: number;
4703
4715
  /**
@@ -4856,7 +4868,8 @@ interface components {
4856
4868
  TEMPERATURE: number;
4857
4869
  /**
4858
4870
  * Max Tokens
4859
- * @default 3000
4871
+ * @description Max output tokens; 0 = uncapped (run to EOS).
4872
+ * @default 0
4860
4873
  */
4861
4874
  MAX_TOKENS: number;
4862
4875
  };
@@ -5176,8 +5189,8 @@ interface components {
5176
5189
  TEMPERATURE: number;
5177
5190
  /**
5178
5191
  * Max Tokens
5179
- * @description Maximum tokens for memory content.
5180
- * @default 8000
5192
+ * @description Max output tokens for memory content; 0 = uncapped (run to EOS).
5193
+ * @default 0
5181
5194
  */
5182
5195
  MAX_TOKENS: number;
5183
5196
  /**
@@ -5883,8 +5896,8 @@ interface components {
5883
5896
  TEMPERATURE: number;
5884
5897
  /**
5885
5898
  * Max Tokens
5886
- * @description Maximum tokens for the plan output.
5887
- * @default 4000
5899
+ * @description Max output tokens for the plan; 0 = uncapped (run to EOS).
5900
+ * @default 0
5888
5901
  */
5889
5902
  MAX_TOKENS: number;
5890
5903
  /**
@@ -6222,8 +6235,8 @@ interface components {
6222
6235
  TEMPERATURE: number;
6223
6236
  /**
6224
6237
  * Max Tokens
6225
- * @description Maximum number of tokens allowed.
6226
- * @default 5000
6238
+ * @description Max output tokens; 0 = uncapped (run to EOS).
6239
+ * @default 0
6227
6240
  */
6228
6241
  MAX_TOKENS: number;
6229
6242
  };
@@ -7086,6 +7099,12 @@ interface components {
7086
7099
  * @default 0.1
7087
7100
  */
7088
7101
  MIN_RETRIEVAL_SIM_SCORE: number;
7102
+ /**
7103
+ * Keyword Min Term Overlap Ratio
7104
+ * @description KEYWORD-mode minimum-should-match: a result must contain at least ceil(ratio * #distinct query terms) of the query's stemmed, stopword-filtered terms (floor 1). Rejects spurious single-incidental-token BM25 matches without a semantic reranker. 0 disables the floor.
7105
+ * @default 0.3
7106
+ */
7107
+ KEYWORD_MIN_TERM_OVERLAP_RATIO: number;
7089
7108
  /**
7090
7109
  * Max Distinct Documents
7091
7110
  * @description Maximum number of distinct documents to search for.
@@ -7176,8 +7195,8 @@ interface components {
7176
7195
  TEMPERATURE: number;
7177
7196
  /**
7178
7197
  * Max Tokens
7179
- * @description Maximum tokens for review response.
7180
- * @default 5000
7198
+ * @description Max output tokens for review; 0 = uncapped (run to EOS).
7199
+ * @default 0
7181
7200
  */
7182
7201
  MAX_TOKENS: number;
7183
7202
  /**
@@ -7710,8 +7729,8 @@ interface components {
7710
7729
  TEMPERATURE: number;
7711
7730
  /**
7712
7731
  * Max Tokens
7713
- * @description Maximum tokens for the summary output.
7714
- * @default 2000
7732
+ * @description Max output tokens for the summary; 0 = uncapped (run to EOS).
7733
+ * @default 0
7715
7734
  */
7716
7735
  MAX_TOKENS: number;
7717
7736
  /**
@@ -7748,6 +7767,14 @@ interface components {
7748
7767
  name: string;
7749
7768
  /** Columns */
7750
7769
  columns: string[];
7770
+ /** Column Widths */
7771
+ column_widths?: {
7772
+ [key: string]: number;
7773
+ } | null;
7774
+ /** Tile Size */
7775
+ tile_size?: number | null;
7776
+ /** Row Height */
7777
+ row_height?: number | null;
7751
7778
  };
7752
7779
  /**
7753
7780
  * TagBreakdown
@@ -8699,8 +8726,8 @@ interface components {
8699
8726
  TEMPERATURE: number;
8700
8727
  /**
8701
8728
  * Max Tokens
8702
- * @description Maximum tokens for the vision response.
8703
- * @default 4000
8729
+ * @description Max output tokens for the vision response; 0 = uncapped (run to EOS).
8730
+ * @default 0
8704
8731
  */
8705
8732
  MAX_TOKENS: number;
8706
8733
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.3.94",
3
+ "version": "0.3.95",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",