@arbidocs/client 0.3.11 → 0.3.14

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.ts CHANGED
@@ -580,6 +580,7 @@ interface paths {
580
580
  * - parent_ext_id: Links new document as child of parent (version chain)
581
581
  * - wp_type: Document type (source, skill, memory, artifact). Defaults to 'source'.
582
582
  * - tag_ext_id: Links document to a tag
583
+ * - folder: Logical folder path for grouping (URL safe, e.g., 'skills/weather')
583
584
  *
584
585
  * Requires active subscription (paid/trial/dev) if Stripe is configured.
585
586
  */
@@ -889,10 +890,7 @@ interface paths {
889
890
  put?: never;
890
891
  /**
891
892
  * Submit human input to an active agent workflow
892
- * @description Send a user message to an active agent workflow.
893
- *
894
- * Works for both ask_user responses (agent is paused) and interjections
895
- * (agent is actively working). Both use the same unified message queue.
893
+ * @description Send a user response to an active agent workflow (ask_user tool).
896
894
  */
897
895
  post: operations['respond_to_agent'];
898
896
  delete?: never;
@@ -1336,13 +1334,40 @@ interface paths {
1336
1334
  get?: never;
1337
1335
  put?: never;
1338
1336
  /**
1339
- * Query
1340
- * @description Process a user query against documents in a workspace.
1341
- * Performs retrieval augmented generation with streaming response.
1337
+ * Create Response
1338
+ * @description Create a model response (OpenAI Responses API).
1342
1339
  *
1343
- * Requires active subscription (paid/trial/dev) if Stripe is configured.
1340
+ * Supports all combinations of ``stream`` and ``background``:
1341
+ * - ``stream=false, background=false``: blocks, returns completed JSON
1342
+ * - ``stream=true, background=false``: SSE stream (resilient to disconnect)
1343
+ * - ``background=true``: 202 immediately, task runs to completion
1344
1344
  */
1345
- post: operations['query_v1_responses_post'];
1345
+ post: operations['create_response'];
1346
+ delete?: never;
1347
+ options?: never;
1348
+ head?: never;
1349
+ patch?: never;
1350
+ trace?: never;
1351
+ };
1352
+ '/v1/responses/{response_id}': {
1353
+ parameters: {
1354
+ query?: never;
1355
+ header?: never;
1356
+ path?: never;
1357
+ cookie?: never;
1358
+ };
1359
+ /**
1360
+ * Get Response
1361
+ * @description Retrieve a response by ID.
1362
+ *
1363
+ * Returns the current state with progressive event accumulation:
1364
+ * - ``in_progress`` with accumulated events if the task is still active
1365
+ * - ``completed`` with output and persisted events if in the database
1366
+ * - 404 if not found
1367
+ */
1368
+ get: operations['get_response'];
1369
+ put?: never;
1370
+ post?: never;
1346
1371
  delete?: never;
1347
1372
  options?: never;
1348
1373
  head?: never;
@@ -1388,7 +1413,7 @@ interface components {
1388
1413
  * "focus": "Searching for force majeure clauses across the selected contracts.",
1389
1414
  * "detail": [
1390
1415
  * {"tool": "search_documents", "query": "force majeure", "search_mode": "hybrid"},
1391
- * {"tool": "get_table_of_contents", "doc_count": 2}
1416
+ * {"tool": "get_table_of_contents", "doc_count": 2, "doc_ext_ids": ["doc-abc12345", "doc-def67890"]}
1392
1417
  * ]}
1393
1418
  * {"type": "arbi.agent_step", "index": 3,
1394
1419
  * "focus": "Comparing the provisions found in Contract A with Contract B.",
@@ -1401,6 +1426,9 @@ interface components {
1401
1426
  * {"type": "arbi.agent_step", "index": 3, "detail": [
1402
1427
  * {"tool": "personal_agent", "task": "Execute Python code to compute the SHA256 hash..."}
1403
1428
  * ]}
1429
+ * {"type": "arbi.agent_step", "index": 3, "detail": [
1430
+ * {"tool": "read_url", "url": "https://example.com/article"}
1431
+ * ]}
1404
1432
  * {"type": "arbi.agent_step", "index": 4, "step": "evaluation", "detail": [
1405
1433
  * {"statement": "Newton prosecuted 28 coiners", "chunk_ids": ["chunk-abc"]},
1406
1434
  * {"statement": "Counterfeiting was high treason", "chunk_ids": ["chunk-def"]}
@@ -1450,6 +1478,8 @@ interface components {
1450
1478
  detail?: {
1451
1479
  [key: string]: unknown;
1452
1480
  }[] | null;
1481
+ /** @description Token usage for the LLM call in this step. */
1482
+ usage?: components['schemas']['StepUsage'] | null;
1453
1483
  /** @description Token budget context snapshot. Present when retrieval counts change. */
1454
1484
  context?: components['schemas']['TokenBudgetContext'] | null;
1455
1485
  };
@@ -1467,11 +1497,13 @@ interface components {
1467
1497
  /**
1468
1498
  * Human In The Loop
1469
1499
  * @description Enable the ask_user tool, allowing the agent to pause and ask the user a question with options.
1470
- * @default true
1500
+ * @default false
1471
1501
  */
1472
1502
  HUMAN_IN_THE_LOOP: boolean;
1473
1503
  /** @description Web search tool configuration. */
1474
1504
  WEB_SEARCH?: components['schemas']['WebSearchConfig'];
1505
+ /** @description Configuration for the run_code tool (Docker sandbox code execution). */
1506
+ RUN_CODE?: components['schemas']['RunCodeConfig'];
1475
1507
  /**
1476
1508
  * Mcp Tools
1477
1509
  * @description MCP tool names to enable from LiteLLM (e.g. ['read_wiki_contents', 'ask_question']).
@@ -1502,12 +1534,42 @@ interface components {
1502
1534
  * @default false
1503
1535
  */
1504
1536
  VISION_ENABLED: boolean;
1537
+ /**
1538
+ * Doc Index Compact Threshold
1539
+ * @description When the workspace has more documents than this, omit the Subject column from the document index to save tokens.
1540
+ * @default 20
1541
+ */
1542
+ DOC_INDEX_COMPACT_THRESHOLD: number;
1543
+ /**
1544
+ * Doc Index Skip Threshold
1545
+ * @description When the workspace has more documents than this, omit the document index entirely. The agent discovers documents via search_documents instead.
1546
+ * @default 200
1547
+ */
1548
+ DOC_INDEX_SKIP_THRESHOLD: number;
1505
1549
  /**
1506
1550
  * Personal Agent
1507
1551
  * @description Enable the personal_agent tool for delegating tasks to an external agent via OpenClaw.
1508
1552
  * @default false
1509
1553
  */
1510
1554
  PERSONAL_AGENT: boolean;
1555
+ /**
1556
+ * Memory Enabled
1557
+ * @description Run memory synthesis (skills, memories) after agent queries.
1558
+ * @default false
1559
+ */
1560
+ MEMORY_ENABLED: boolean;
1561
+ /**
1562
+ * Skills Enabled
1563
+ * @description Enable the skills system: /skill (create) and /<skill-name> (invoke) commands.
1564
+ * @default false
1565
+ */
1566
+ SKILLS_ENABLED: boolean;
1567
+ /**
1568
+ * Skill Creation
1569
+ * @description Transient flag set by /skill command to enable the save_skill agent tool.
1570
+ * @default false
1571
+ */
1572
+ SKILL_CREATION: boolean;
1511
1573
  /**
1512
1574
  * Review Enabled
1513
1575
  * @description Enable ReviewLLM to review agent draft answers against source material before sending to the user. Uses the reasoning model for higher quality.
@@ -1517,15 +1579,13 @@ interface components {
1517
1579
  /**
1518
1580
  * Persona
1519
1581
  * @description Agent persona prepended to the system prompt. Customise to change the agent's identity and tone.
1520
- * @default You are ARBI, an AI assistant created by ARBI CITY.
1521
- *
1522
- * You maintain formal, objective tone appropriate for professional/legal contexts. If any part of the answer is based on general knowledge instead of the supplied sources, you must state so clearly and recognise that it may not be accurate.
1582
+ * @default You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.
1523
1583
  */
1524
1584
  PERSONA: string;
1525
1585
  /**
1526
1586
  * Agent Model Name
1527
1587
  * @description The name of the model to be used for the agent decision-making.
1528
- * @default Q3VL@ARBICITY
1588
+ * @default Fast
1529
1589
  */
1530
1590
  AGENT_MODEL_NAME: string;
1531
1591
  /**
@@ -1538,19 +1598,19 @@ interface components {
1538
1598
  /**
1539
1599
  * Llm Agent Temperature
1540
1600
  * @description Temperature value for agent LLM.
1541
- * @default 0.7
1601
+ * @default 1
1542
1602
  */
1543
1603
  LLM_AGENT_TEMPERATURE: number;
1544
1604
  /**
1545
1605
  * Agent Max Tokens
1546
1606
  * @description Maximum tokens for the agent LLM response.
1547
- * @default 20000
1607
+ * @default 10000
1548
1608
  */
1549
1609
  AGENT_MAX_TOKENS: number;
1550
1610
  /**
1551
1611
  * Agent Max Iterations
1552
1612
  * @description Maximum number of tool call iterations before forcing an answer.
1553
- * @default 10
1613
+ * @default 20
1554
1614
  */
1555
1615
  AGENT_MAX_ITERATIONS: number;
1556
1616
  /**
@@ -1568,41 +1628,31 @@ interface components {
1568
1628
  /**
1569
1629
  * Agent System Prompt
1570
1630
  * @description System prompt for the agent. Dynamic context is appended automatically.
1571
- * @default YOU ARE:
1572
- * ARBI — an AI assistant made by Arbitration City Ltd (https://arbicity.com), capable of helping with a wide variety of tasks using workspace documents, web search, and general knowledge.
1573
- * Always respond in first person. Be helpful and natural, not overly formal.
1631
+ * @default Answer any question the user asks. You have access to workspace documents — use them when relevant. When no documents are relevant, answer from your own knowledge. Always provide a helpful answer.
1574
1632
  *
1575
- * YOUR TASK:
1576
- * Answer the user's query. Use workspace documents when relevant. If appropriate, you may use available tools to perform external research.
1633
+ * IMPORTANT: Never say "I don't have information in the available documents" or refuse to answer. If documents are not relevant, just answer the question directly from your own knowledge.
1577
1634
  *
1578
- * ANSWERING GUIDELINES:
1579
- * - If the answer comes from workspace documents, cite them normally.
1580
- * - If the answer comes from external research, say so.
1581
- * - If the answer is based on general knowledge (no tool results), state that
1582
- * it is based on general knowledge and may not be fully accurate.
1583
- * - You are allowed to answer questions that are not about the documents.
1635
+ * When using documents, retrieve actual document content — do not rely on metadata or headings alone. Cross-check information across sources. Not all assertions in sources are factual — some are arguments by a party. Attribute claims to their source where parties disagree.
1584
1636
  *
1585
- * EFFICIENCY GUIDELINES:
1586
- * 1. PARALLEL CALLS: When a query has multiple aspects, call multiple tools in parallel (e.g., search different keywords simultaneously)
1587
- * 2. AVOID DUPLICATION: Before searching, review learnings from previous results. Do not repeat searches for information you already have
1588
- * 3. TARGETED SEARCHES: Use specific, focused queries rather than broad ones
1589
- * 4. NARROW RETRIEVALS: When retrieving document passages, use sub-page references (e.g. 5.3-8.1) where available from search results or table of contents. Request narrow ranges per call and fetch additional ranges in subsequent iterations if needed — avoid fetching entire documents at once
1590
- * 5. STOP WHEN READY: Provide your answer when you have sufficient evidence. Signs you have enough:
1591
- * - Multiple sources confirm the same facts
1592
- * - Key questions from the query are addressed
1593
- * - Additional searches return redundant information
1637
+ * DOCUMENT STRATEGY:
1638
+ * - For overview/summary requests: use get_table_of_contents first, then read key sections with get_document_passages.
1639
+ * - For specific questions: use search_documents to find relevant sections, then read those sections.
1640
+ * - Never search for meta-queries like "summary" or "overview" search for the actual subject matter.
1594
1641
  *
1595
- * WORKFLOW:
1596
- * 1. For complex multi-document queries, plan your approach before executing searches
1597
- * 2. Choose the right tool for each need — documents for uploaded content, web for external/current info
1598
- * 3. Execute parallel searches for different aspects when appropriate
1599
- * 4. Evaluate results - extract learnings, note gaps
1600
- * 5. Only search again if specific gaps remain unfilled
1601
- * 6. Answer when confident (no tool call) - do not over-research
1642
+ * FORMATTING:
1643
+ * - Start your answer directly with the content — never open with a description of what you searched for or read (e.g. never write "Searching for X", "Reading Y", "I found Z documents" as the first lines of an answer).
1644
+ * - Use markdown: headings, bold, bullet points, numbered lists
1645
+ * - Main conclusion first, followed by supporting points
1646
+ * - Bullet points for lists of discrete items
1647
+ * - Numbering for sequential steps or prioritized items
1648
+ * - Bold text for critical conclusions or decision points
1602
1649
  *
1603
- * IMPORTANT:
1604
- * - The document index contains metadata only - you must retrieve actual content
1605
- * - Do not add inline citation markers - the system handles citations automatically
1650
+ * EFFICIENCY:
1651
+ * 1. Before each step, review the results of prior steps. Adapt your approach based on what you learned if a call was rejected or returned poor results, adjust your strategy.
1652
+ * 2. Call multiple tools in parallel when a query has several aspects.
1653
+ * 3. NEVER repeat a tool call with the same arguments.
1654
+ * 4. Use targeted queries and narrow page ranges per retrieval call.
1655
+ * 5. Stop when you have sufficient evidence — do not over-research.
1606
1656
  */
1607
1657
  AGENT_SYSTEM_PROMPT: string;
1608
1658
  };
@@ -1611,35 +1661,47 @@ interface components {
1611
1661
  /**
1612
1662
  * @default {
1613
1663
  * "ENABLED": true,
1614
- * "HUMAN_IN_THE_LOOP": true,
1664
+ * "HUMAN_IN_THE_LOOP": false,
1615
1665
  * "WEB_SEARCH": {
1616
1666
  * "ENABLED": false,
1617
1667
  * "SAVE_SOURCES": true
1618
1668
  * },
1669
+ * "RUN_CODE": {
1670
+ * "ENABLED": false,
1671
+ * "IMAGE": "arbi-sandbox:bookworm-slim",
1672
+ * "MEMORY_LIMIT": "512m",
1673
+ * "NETWORK": "bridge",
1674
+ * "TIMEOUT_SECONDS": 60
1675
+ * },
1619
1676
  * "MCP_TOOLS": [],
1620
1677
  * "PLANNING_ENABLED": false,
1621
1678
  * "SUGGESTED_QUERIES": false,
1622
1679
  * "ARTIFACTS_ENABLED": false,
1623
1680
  * "VISION_ENABLED": false,
1681
+ * "DOC_INDEX_COMPACT_THRESHOLD": 20,
1682
+ * "DOC_INDEX_SKIP_THRESHOLD": 200,
1624
1683
  * "PERSONAL_AGENT": false,
1684
+ * "MEMORY_ENABLED": false,
1685
+ * "SKILLS_ENABLED": false,
1686
+ * "SKILL_CREATION": false,
1625
1687
  * "REVIEW_ENABLED": false,
1626
- * "PERSONA": "You are ARBI, an AI assistant created by ARBI CITY.\n\nYou maintain formal, objective tone appropriate for professional/legal contexts. If any part of the answer is based on general knowledge instead of the supplied sources, you must state so clearly and recognise that it may not be accurate.",
1627
- * "AGENT_MODEL_NAME": "Q3VL@ARBICITY",
1688
+ * "PERSONA": "You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.",
1689
+ * "AGENT_MODEL_NAME": "Fast",
1628
1690
  * "AGENT_API_TYPE": "remote",
1629
- * "LLM_AGENT_TEMPERATURE": 0.7,
1630
- * "AGENT_MAX_TOKENS": 20000,
1631
- * "AGENT_MAX_ITERATIONS": 10,
1691
+ * "LLM_AGENT_TEMPERATURE": 1,
1692
+ * "AGENT_MAX_TOKENS": 10000,
1693
+ * "AGENT_MAX_ITERATIONS": 20,
1632
1694
  * "MAX_PASSAGE_PAGES": 10,
1633
1695
  * "AGENT_HISTORY_CHAR_THRESHOLD": 8000,
1634
- * "AGENT_SYSTEM_PROMPT": "YOU ARE:\nARBI an AI assistant made by Arbitration City Ltd (https://arbicity.com), capable of helping with a wide variety of tasks using workspace documents, web search, and general knowledge.\nAlways respond in first person. Be helpful and natural, not overly formal.\n\nYOUR TASK:\nAnswer the user's query. Use workspace documents when relevant. If appropriate, you may use available tools to perform external research.\n\nANSWERING GUIDELINES:\n- If the answer comes from workspace documents, cite them normally.\n- If the answer comes from external research, say so.\n- If the answer is based on general knowledge (no tool results), state that\n it is based on general knowledge and may not be fully accurate.\n- You are allowed to answer questions that are not about the documents.\n\nEFFICIENCY GUIDELINES:\n1. PARALLEL CALLS: When a query has multiple aspects, call multiple tools in parallel (e.g., search different keywords simultaneously)\n2. AVOID DUPLICATION: Before searching, review learnings from previous results. Do not repeat searches for information you already have\n3. TARGETED SEARCHES: Use specific, focused queries rather than broad ones\n4. NARROW RETRIEVALS: When retrieving document passages, use sub-page references (e.g. 5.3-8.1) where available from search results or table of contents. Request narrow ranges per call and fetch additional ranges in subsequent iterations if needed avoid fetching entire documents at once\n5. STOP WHEN READY: Provide your answer when you have sufficient evidence. Signs you have enough:\n - Multiple sources confirm the same facts\n - Key questions from the query are addressed\n - Additional searches return redundant information\n\nWORKFLOW:\n1. For complex multi-document queries, plan your approach before executing searches\n2. Choose the right tool for each needdocuments for uploaded content, web for external/current info\n3. Execute parallel searches for different aspects when appropriate\n4. Evaluate results - extract learnings, note gaps\n5. Only search again if specific gaps remain unfilled\n6. Answer when confident (no tool call) - do not over-research\n\nIMPORTANT:\n- The document index contains metadata only - you must retrieve actual content\n- Do not add inline citation markers - the system handles citations automatically"
1696
+ * "AGENT_SYSTEM_PROMPT": "Answer any question the user asks. You have access to workspace documents use them when relevant. When no documents are relevant, answer from your own knowledge. Always provide a helpful answer.\n\nIMPORTANT: Never say \"I don't have information in the available documents\" or refuse to answer. If documents are not relevant, just answer the question directly from your own knowledge.\n\nWhen using documents, retrieve actual document content do not rely on metadata or headings alone. Cross-check information across sources. Not all assertions in sources are factual some are arguments by a party. Attribute claims to their source where parties disagree.\n\nDOCUMENT STRATEGY:\n- For overview/summary requests: use get_table_of_contents first, then read key sections with get_document_passages.\n- For specific questions: use search_documents to find relevant sections, then read those sections.\n- Never search for meta-queries like \"summary\" or \"overview\" search for the actual subject matter.\n\nFORMATTING:\n- Start your answer directly with the content never open with a description of what you searched for or read (e.g. never write \"Searching for X\", \"Reading Y\", \"I found Z documents\" as the first lines of an answer).\n- Use markdown: headings, bold, bullet points, numbered lists\n- Main conclusion first, followed by supporting points\n- Bullet points for lists of discrete items\n- Numbering for sequential steps or prioritized items\n- Bold text for critical conclusions or decision points\n\nEFFICIENCY:\n1. Before each step, review the results of prior steps. Adapt your approach based on what you learned if a call was rejected or returned poor results, adjust your strategy.\n2. Call multiple tools in parallel when a query has several aspects.\n3. NEVER repeat a tool call with the same arguments.\n4. Use targeted queries and narrow page ranges per retrieval call.\n5. Stop when you have sufficient evidence do not over-research."
1635
1697
  * }
1636
1698
  */
1637
1699
  Agents: components['schemas']['AgentsConfig'];
1638
1700
  /**
1639
1701
  * @default {
1640
1702
  * "API_TYPE": "remote",
1641
- * "MODEL_NAME": "Q3VL@ARBICITY",
1642
- * "SYSTEM_INSTRUCTION": "You are ARBI, an AI assistant created by ARBI CITY.\n\nYou maintain formal, objective tone appropriate for professional/legal contexts. If any part of the answer is based on general knowledge instead of the supplied sources, you must state so clearly and recognise that it may not be accurate.You can ask a follow-up question instead of answering immediately if you are confused by the question and unable to intuit the user's intent.\n\nStructure responses with clear headings and logical organization:\n- Use hierarchical organization: main conclusion first, followed by supporting points\n- Bullet points for lists of discrete items\n- Numbering for sequential steps or prioritized items\n- Bold text for critical conclusions or decision points\n\nYou should recognise that not all assertions in the sources are factual. Some are mere assertions/arguments by the author, particularly in a legal context where different parties may express different opinions or even contradict each other's factual narrative. The best way to handle this is usually to attribute where the information comes from. I.e. according to xx document, or xx party.\n\nYou should avoid generalisations and provide exact quotations where possible. Never make up citations, facts or other information. Acknowledge uncertainty where source materials are insufficient or ambiguous.",
1703
+ * "MODEL_NAME": "Fast",
1704
+ * "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.",
1643
1705
  * "MAX_CHAR_SIZE_TO_ANSWER": 200000,
1644
1706
  * "TEMPERATURE": 0.1,
1645
1707
  * "MAX_TOKENS": 5000
@@ -1649,7 +1711,7 @@ interface components {
1649
1711
  /**
1650
1712
  * @default {
1651
1713
  * "API_TYPE": "remote",
1652
- * "MODEL_NAME": "GPTOSS120@ARBICITY",
1714
+ * "MODEL_NAME": "Wise",
1653
1715
  * "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.",
1654
1716
  * "TEMPERATURE": 0.1,
1655
1717
  * "MAX_TOKENS": 5000,
@@ -1660,7 +1722,7 @@ interface components {
1660
1722
  /**
1661
1723
  * @default {
1662
1724
  * "API_TYPE": "remote",
1663
- * "MODEL_NAME": "Q3VL@ARBICITY",
1725
+ * "MODEL_NAME": "Fast",
1664
1726
  * "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.",
1665
1727
  * "TEMPERATURE": 0.1,
1666
1728
  * "MAX_TOKENS": 20000,
@@ -1671,7 +1733,7 @@ interface components {
1671
1733
  /**
1672
1734
  * @default {
1673
1735
  * "API_TYPE": "remote",
1674
- * "MODEL_NAME": "Q3VL@ARBICITY",
1736
+ * "MODEL_NAME": "Fast",
1675
1737
  * "SYSTEM_INSTRUCTION": "You are a title generator that creates concise, descriptive titles.",
1676
1738
  * "MAX_CHAR_SIZE_TO_ANSWER": 50,
1677
1739
  * "TEMPERATURE": 0.3,
@@ -1682,7 +1744,7 @@ interface components {
1682
1744
  /**
1683
1745
  * @default {
1684
1746
  * "API_TYPE": "remote",
1685
- * "MODEL_NAME": "GPTOSS120@ARBICITY",
1747
+ * "MODEL_NAME": "Wise",
1686
1748
  * "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.",
1687
1749
  * "TEMPERATURE": 0.1,
1688
1750
  * "MAX_TOKENS": 2000,
@@ -1695,7 +1757,7 @@ interface components {
1695
1757
  /**
1696
1758
  * @default {
1697
1759
  * "API_TYPE": "remote",
1698
- * "MODEL_NAME": "Q3VL@ARBICITY",
1760
+ * "MODEL_NAME": "Fast",
1699
1761
  * "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",
1700
1762
  * "MAX_CHAR_CONTEXT_TO_ANSWER": 100000,
1701
1763
  * "TEMPERATURE": 0.1,
@@ -1753,8 +1815,7 @@ interface components {
1753
1815
  /**
1754
1816
  * @default {
1755
1817
  * "API_TYPE": "remote",
1756
- * "MODEL_NAME": "GPTOSS120@ARBICITY",
1757
- * "ENABLED": true,
1818
+ * "MODEL_NAME": "Wise",
1758
1819
  * "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.",
1759
1820
  * "TEMPERATURE": 0.3,
1760
1821
  * "MAX_TOKENS": 8000,
@@ -1766,7 +1827,7 @@ interface components {
1766
1827
  /**
1767
1828
  * @default {
1768
1829
  * "API_TYPE": "remote",
1769
- * "MODEL_NAME": "GPTOSS120@ARBICITY",
1830
+ * "MODEL_NAME": "Wise",
1770
1831
  * "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_documents: Search workspace documents for relevant passages (semantic, keyword, or hybrid)\n- get_document_passages: Read a specific page range from a document\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.",
1771
1832
  * "TEMPERATURE": 0.3,
1772
1833
  * "MAX_TOKENS": 4000,
@@ -1778,7 +1839,7 @@ interface components {
1778
1839
  /**
1779
1840
  * @default {
1780
1841
  * "API_TYPE": "remote",
1781
- * "MODEL_NAME": "Q3VL@ARBICITY",
1842
+ * "MODEL_NAME": "Fast",
1782
1843
  * "TEMPERATURE": 0.1,
1783
1844
  * "MAX_TOKENS": 4000,
1784
1845
  * "MAX_PAGES_PER_CALL": 5,
@@ -1788,7 +1849,18 @@ interface components {
1788
1849
  VisionLLM: components['schemas']['VisionLLMConfig'];
1789
1850
  /**
1790
1851
  * @default {
1791
- * "SIM_THREASHOLD": 0.1,
1852
+ * "API_TYPE": "remote",
1853
+ * "MODEL_NAME": "Premium",
1854
+ * "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.",
1855
+ * "TEMPERATURE": 0.2,
1856
+ * "MAX_TOKENS": 8000,
1857
+ * "MAX_ITERATIONS": 3
1858
+ * }
1859
+ */
1860
+ CodeAgent: components['schemas']['CodeAgentConfig'];
1861
+ /**
1862
+ * @default {
1863
+ * "SIM_THREASHOLD": 0.5,
1792
1864
  * "MIN_CHAR_SIZE_TO_ANSWER": 30,
1793
1865
  * "MAX_NUMB_CITATIONS": 5
1794
1866
  * }
@@ -1809,19 +1881,25 @@ interface components {
1809
1881
  Retriever: components['schemas']['RetrieverConfig'];
1810
1882
  /**
1811
1883
  * @default {
1884
+ * "MIN_SCORE": 0.01,
1812
1885
  * "MAX_NUMB_OF_CHUNKS": 30,
1813
1886
  * "MAX_CONCURRENT_REQUESTS": 64,
1814
1887
  * "MODEL_NAME": "Qwen/Qwen3-Reranker-0.6B",
1815
- * "API_TYPE": "remote",
1816
- * "QUERY_INSTRUCTION": "Given a user query, retrieve relevant passages from documents that answer the query"
1888
+ * "API_TYPE": "remote"
1817
1889
  * }
1818
1890
  */
1819
1891
  Reranker: components['schemas']['RerankerConfig'];
1820
- /** @default {} */
1892
+ /**
1893
+ * @default {
1894
+ * "SKIP_DUPLICATES": false
1895
+ * }
1896
+ */
1821
1897
  Parser: components['schemas']['ParserConfig'];
1822
1898
  /**
1823
1899
  * @default {
1824
- * "MAX_CHUNK_TOKENS": 8000
1900
+ * "MAX_CHUNK_TOKENS": 1200,
1901
+ * "TOKENIZER_TYPE": "huggingface",
1902
+ * "TOKENIZER_NAME": "Qwen/Qwen3-Embedding-0.6B"
1825
1903
  * }
1826
1904
  */
1827
1905
  Chunker: components['schemas']['ChunkerConfig'];
@@ -1847,6 +1925,42 @@ interface components {
1847
1925
  */
1848
1926
  KeywordEmbedder: components['schemas']['KeywordEmbedderConfig'];
1849
1927
  };
1928
+ /**
1929
+ * AllLlmCallsAggregate
1930
+ * @description Aggregate token usage across all LLM calls within a single request.
1931
+ */
1932
+ AllLlmCallsAggregate: {
1933
+ /**
1934
+ * Count
1935
+ * @description Number of LLM calls made
1936
+ */
1937
+ count: number;
1938
+ /**
1939
+ * Input Tokens
1940
+ * @description Sum of prompt tokens across all calls
1941
+ */
1942
+ input_tokens: number;
1943
+ /**
1944
+ * Output Tokens
1945
+ * @description Sum of completion tokens across all calls
1946
+ */
1947
+ output_tokens: number;
1948
+ /**
1949
+ * Reasoning Tokens
1950
+ * @description Sum of reasoning tokens across all calls
1951
+ */
1952
+ reasoning_tokens: number;
1953
+ /**
1954
+ * Total Tokens
1955
+ * @description Sum of all tokens across all calls
1956
+ */
1957
+ total_tokens: number;
1958
+ /**
1959
+ * Last Input Tokens
1960
+ * @description Input tokens from the most recent LLM call (= current thread size)
1961
+ */
1962
+ last_input_tokens: number;
1963
+ };
1850
1964
  /**
1851
1965
  * ArtifactEvent
1852
1966
  * @description A generated artifact (document/draft) for the artifact panel.
@@ -1918,6 +2032,23 @@ interface components {
1918
2032
  */
1919
2033
  message_ext_id?: string | null;
1920
2034
  };
2035
+ /**
2036
+ * AskUserDetail
2037
+ * @description Detail for an ask_user tool call.
2038
+ */
2039
+ AskUserDetail: {
2040
+ /**
2041
+ * Tool
2042
+ * @default ask_user
2043
+ * @constant
2044
+ */
2045
+ tool: 'ask_user';
2046
+ /**
2047
+ * Question
2048
+ * @description Question for the user (truncated to 80 chars)
2049
+ */
2050
+ question: string;
2051
+ };
1921
2052
  /**
1922
2053
  * AuthMessage
1923
2054
  * @description Client authentication message.
@@ -2116,10 +2247,23 @@ interface components {
2116
2247
  ChunkerConfig: {
2117
2248
  /**
2118
2249
  * Max Chunk Tokens
2119
- * @description Maximum tokens per chunk. Chunks exceeding this are force-split at token boundaries.
2120
- * @default 8000
2250
+ * @description Maximum tokens per chunk. The tokenizer used depends on TOKENIZER_TYPE.
2251
+ * @default 1200
2121
2252
  */
2122
2253
  MAX_CHUNK_TOKENS: number;
2254
+ /**
2255
+ * Tokenizer Type
2256
+ * @description Tokenizer backend: 'tiktoken' for OpenAI models (cl100k_base, etc.) or 'huggingface' for HF models (Qwen3-Embedding, etc.).
2257
+ * @default huggingface
2258
+ * @enum {string}
2259
+ */
2260
+ TOKENIZER_TYPE: 'tiktoken' | 'huggingface';
2261
+ /**
2262
+ * Tokenizer Name
2263
+ * @description Tokenizer name. For tiktoken: 'cl100k_base', 'o200k_base', etc. For huggingface: model name like 'Qwen/Qwen3-Embedding-0.6B'.
2264
+ * @default Qwen/Qwen3-Embedding-0.6B
2265
+ */
2266
+ TOKENIZER_NAME: string;
2123
2267
  };
2124
2268
  /**
2125
2269
  * CitationData
@@ -2128,6 +2272,11 @@ interface components {
2128
2272
  CitationData: {
2129
2273
  /** Chunk Ids */
2130
2274
  chunk_ids: string[];
2275
+ /**
2276
+ * Scores
2277
+ * @default []
2278
+ */
2279
+ scores: number[];
2131
2280
  /** Statement */
2132
2281
  statement: string;
2133
2282
  /** Offset Start */
@@ -2135,6 +2284,64 @@ interface components {
2135
2284
  /** Offset End */
2136
2285
  offset_end: number;
2137
2286
  };
2287
+ /**
2288
+ * CodeAgentConfig
2289
+ * @description Configuration for CodeAgent — sub-agent that writes and executes code via sandbox.
2290
+ */
2291
+ CodeAgentConfig: {
2292
+ /**
2293
+ * Api Type
2294
+ * @description The inference type (local or remote).
2295
+ * @default remote
2296
+ * @enum {string}
2297
+ */
2298
+ API_TYPE: 'local' | 'remote';
2299
+ /**
2300
+ * Model Name
2301
+ * @description Model for code generation. Should be a strong coding model.
2302
+ * @default Premium
2303
+ */
2304
+ MODEL_NAME: string;
2305
+ /**
2306
+ * System Instruction
2307
+ * @description System prompt for the code execution agent.
2308
+ * @default You are a code execution agent. You write and run code to accomplish tasks.
2309
+ *
2310
+ * You have access to an execute_code tool that runs code in a sandboxed Docker container.
2311
+ *
2312
+ * The sandbox has:
2313
+ * - Python 3.12 with numpy, pandas, matplotlib, requests, beautifulsoup4,
2314
+ * httpx, pillow, sympy, pyyaml (plus uv for installing more)
2315
+ * - Node.js 22 with TypeScript (ts-node) and npm
2316
+ * - Bash with git, curl, wget, jq, sqlite3, build-essential
2317
+ * - Network access (can pip/npm install additional packages)
2318
+ *
2319
+ * Instructions:
2320
+ * 1. Write clean, correct code to accomplish the user's task
2321
+ * 2. Always call execute_code to run your code — never guess the output
2322
+ * 3. If execution errors, analyze the traceback, fix the code, and retry
2323
+ * 4. Once you have the correct output, respond with ONLY the final result
2324
+ *
2325
+ * Keep code simple and direct. Prefer Python unless the task specifically requires another language.
2326
+ */
2327
+ SYSTEM_INSTRUCTION: string;
2328
+ /**
2329
+ * Temperature
2330
+ * @default 0.2
2331
+ */
2332
+ TEMPERATURE: number;
2333
+ /**
2334
+ * Max Tokens
2335
+ * @default 8000
2336
+ */
2337
+ MAX_TOKENS: number;
2338
+ /**
2339
+ * Max Iterations
2340
+ * @description Maximum code-execute-fix retry cycles.
2341
+ * @default 3
2342
+ */
2343
+ MAX_ITERATIONS: number;
2344
+ };
2138
2345
  /** CompactionTool */
2139
2346
  CompactionTool: {
2140
2347
  /**
@@ -2391,6 +2598,29 @@ interface components {
2391
2598
  */
2392
2599
  results: components['schemas']['CopyDocumentResult'][];
2393
2600
  };
2601
+ /**
2602
+ * CreateArtifactDetail
2603
+ * @description Detail for a create_artifact tool call.
2604
+ */
2605
+ CreateArtifactDetail: {
2606
+ /**
2607
+ * Tool
2608
+ * @default create_artifact
2609
+ * @constant
2610
+ */
2611
+ tool: 'create_artifact';
2612
+ /**
2613
+ * Title
2614
+ * @description Artifact title (truncated to 80 chars)
2615
+ */
2616
+ title: string;
2617
+ /**
2618
+ * Mode
2619
+ * @description Rendering mode: markdown, html, text
2620
+ * @default markdown
2621
+ */
2622
+ mode: string;
2623
+ };
2394
2624
  /**
2395
2625
  * CreateDocTagRequest
2396
2626
  * @description Apply a tag to one or more documents.
@@ -2407,6 +2637,23 @@ interface components {
2407
2637
  [key: string]: components['schemas']['CitationData'];
2408
2638
  } | null;
2409
2639
  };
2640
+ /**
2641
+ * CreatePlanDetail
2642
+ * @description Detail for a create_plan tool call.
2643
+ */
2644
+ CreatePlanDetail: {
2645
+ /**
2646
+ * Tool
2647
+ * @default create_plan
2648
+ * @constant
2649
+ */
2650
+ tool: 'create_plan';
2651
+ /**
2652
+ * Query
2653
+ * @description Planning query (truncated to 80 chars)
2654
+ */
2655
+ query: string;
2656
+ };
2410
2657
  /**
2411
2658
  * CreateSubscriptionRequest
2412
2659
  * @description Request to create a new subscription checkout session.
@@ -2551,6 +2798,8 @@ interface components {
2551
2798
  updated_at: string;
2552
2799
  /** Wp Type */
2553
2800
  wp_type?: string | null;
2801
+ /** Folder */
2802
+ folder?: string | null;
2554
2803
  /**
2555
2804
  * Doctags
2556
2805
  * @default []
@@ -2602,6 +2851,11 @@ interface components {
2602
2851
  status?: 'processing' | null;
2603
2852
  /** Content */
2604
2853
  content?: string | null;
2854
+ /**
2855
+ * Folder
2856
+ * @description Logical folder path (URL safe)
2857
+ */
2858
+ folder?: string | null;
2605
2859
  };
2606
2860
  /**
2607
2861
  * DoctagLLMConfig
@@ -2618,7 +2872,7 @@ interface components {
2618
2872
  /**
2619
2873
  * Model Name
2620
2874
  * @description The name of the non-reasoning model to be used.
2621
- * @default Q3VL@ARBICITY
2875
+ * @default Fast
2622
2876
  */
2623
2877
  MODEL_NAME: string;
2624
2878
  /**
@@ -2764,6 +3018,17 @@ interface components {
2764
3018
  /** Message */
2765
3019
  message: string;
2766
3020
  };
3021
+ /**
3022
+ * EvaluationDetail
3023
+ * @description Detail for an evaluation learning entry.
3024
+ */
3025
+ EvaluationDetail: {
3026
+ /**
3027
+ * Statement
3028
+ * @description Citation/finding statement
3029
+ */
3030
+ statement: string;
3031
+ };
2767
3032
  /** EvaluatorLLMConfig */
2768
3033
  EvaluatorLLMConfig: {
2769
3034
  /**
@@ -2776,7 +3041,7 @@ interface components {
2776
3041
  /**
2777
3042
  * Model Name
2778
3043
  * @description The name of the non-reasoning model to be used.
2779
- * @default Q3VL@ARBICITY
3044
+ * @default Fast
2780
3045
  */
2781
3046
  MODEL_NAME: string;
2782
3047
  /**
@@ -2911,6 +3176,72 @@ interface components {
2911
3176
  */
2912
3177
  tag_ext_ids: string[];
2913
3178
  };
3179
+ /**
3180
+ * GetDocumentPassagesDetail
3181
+ * @description Detail for a get_document_passages tool call.
3182
+ */
3183
+ GetDocumentPassagesDetail: {
3184
+ /**
3185
+ * Tool
3186
+ * @default get_document_passages
3187
+ * @constant
3188
+ */
3189
+ tool: 'get_document_passages';
3190
+ /**
3191
+ * Doc Ext Id
3192
+ * @description Document external ID
3193
+ */
3194
+ doc_ext_id: string;
3195
+ /**
3196
+ * From Ref
3197
+ * @description Start reference (page.chunk)
3198
+ */
3199
+ from_ref: string;
3200
+ /**
3201
+ * To Ref
3202
+ * @description End reference (page.chunk)
3203
+ */
3204
+ to_ref: string;
3205
+ };
3206
+ /**
3207
+ * GetFullDocumentDetail
3208
+ * @description Detail for a get_full_document tool call.
3209
+ */
3210
+ GetFullDocumentDetail: {
3211
+ /**
3212
+ * Tool
3213
+ * @default get_full_document
3214
+ * @constant
3215
+ */
3216
+ tool: 'get_full_document';
3217
+ /**
3218
+ * Doc Ext Id
3219
+ * @description Document external ID
3220
+ */
3221
+ doc_ext_id: string;
3222
+ };
3223
+ /**
3224
+ * GetTableOfContentsDetail
3225
+ * @description Detail for a get_table_of_contents tool call.
3226
+ */
3227
+ GetTableOfContentsDetail: {
3228
+ /**
3229
+ * Tool
3230
+ * @default get_table_of_contents
3231
+ * @constant
3232
+ */
3233
+ tool: 'get_table_of_contents';
3234
+ /**
3235
+ * Doc Count
3236
+ * @description Number of documents requested
3237
+ */
3238
+ doc_count: number;
3239
+ /**
3240
+ * Doc Ext Ids
3241
+ * @description Document external IDs
3242
+ */
3243
+ doc_ext_ids: string[];
3244
+ };
2914
3245
  /** HTTPValidationError */
2915
3246
  HTTPValidationError: {
2916
3247
  /** Detail */
@@ -3029,15 +3360,9 @@ interface components {
3029
3360
  /**
3030
3361
  * Model Name
3031
3362
  * @description The model for memory synthesis. Defaults to reasoning model.
3032
- * @default GPTOSS120@ARBICITY
3363
+ * @default Wise
3033
3364
  */
3034
3365
  MODEL_NAME: string;
3035
- /**
3036
- * Enabled
3037
- * @description Whether to run memory synthesis (skills, memories) after agent queries.
3038
- * @default true
3039
- */
3040
- ENABLED: boolean;
3041
3366
  /**
3042
3367
  * System Instruction
3043
3368
  * @description System instruction for memory classification and synthesis.
@@ -3101,7 +3426,7 @@ interface components {
3101
3426
  input: string;
3102
3427
  /** Tools */
3103
3428
  tools?: {
3104
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'];
3429
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'];
3105
3430
  };
3106
3431
  /**
3107
3432
  * Workspace Ext Id
@@ -3117,6 +3442,16 @@ interface components {
3117
3442
  * @default false
3118
3443
  */
3119
3444
  stream: boolean;
3445
+ /**
3446
+ * Background
3447
+ * @default false
3448
+ */
3449
+ background: boolean;
3450
+ /**
3451
+ * Store
3452
+ * @default true
3453
+ */
3454
+ store: boolean;
3120
3455
  /** Instructions */
3121
3456
  instructions?: string | null;
3122
3457
  /** Max Output Tokens */
@@ -3143,7 +3478,7 @@ interface components {
3143
3478
  content: string;
3144
3479
  /** Tools */
3145
3480
  tools?: {
3146
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'];
3481
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'];
3147
3482
  };
3148
3483
  /** Config Ext Id */
3149
3484
  config_ext_id?: string | null;
@@ -3204,7 +3539,7 @@ interface components {
3204
3539
  content: string;
3205
3540
  /** Tools */
3206
3541
  tools?: {
3207
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'];
3542
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'];
3208
3543
  };
3209
3544
  /** Config Ext Id */
3210
3545
  config_ext_id?: string | null;
@@ -3236,8 +3571,8 @@ interface components {
3236
3571
  ModelCitationConfig: {
3237
3572
  /**
3238
3573
  * Sim Threashold
3239
- * @description How similar does the statement needs to be to be considered as citation.
3240
- * @default 0.1
3574
+ * @description Minimum similarity score for a chunk to be cited.
3575
+ * @default 0.5
3241
3576
  */
3242
3577
  SIM_THREASHOLD: number;
3243
3578
  /**
@@ -3279,6 +3614,8 @@ interface components {
3279
3614
  model_name: string;
3280
3615
  /** Api Type */
3281
3616
  api_type: string;
3617
+ /** Tags */
3618
+ tags?: string[] | null;
3282
3619
  /** Max Input Tokens */
3283
3620
  max_input_tokens?: number | null;
3284
3621
  /** Max Output Tokens */
@@ -3330,10 +3667,6 @@ interface components {
3330
3667
  Agents: {
3331
3668
  [key: string]: string | boolean;
3332
3669
  };
3333
- /** Memoryllm */
3334
- MemoryLLM: {
3335
- [key: string]: boolean;
3336
- };
3337
3670
  };
3338
3671
  /**
3339
3672
  * NotificationResponse
@@ -3501,7 +3834,60 @@ interface components {
3501
3834
  */
3502
3835
  ParsedStage: 'marker' | 'subchunk' | 'final';
3503
3836
  /** ParserConfig */
3504
- ParserConfig: Record<string, never>;
3837
+ ParserConfig: {
3838
+ /**
3839
+ * Skip Duplicates
3840
+ * @description Skip files with identical content already in the workspace.
3841
+ * @default false
3842
+ */
3843
+ SKIP_DUPLICATES: boolean;
3844
+ };
3845
+ /**
3846
+ * PersonalAgentDetail
3847
+ * @description Detail for a personal_agent tool call.
3848
+ */
3849
+ PersonalAgentDetail: {
3850
+ /**
3851
+ * Tool
3852
+ * @default personal_agent
3853
+ * @constant
3854
+ */
3855
+ tool: 'personal_agent';
3856
+ /**
3857
+ * Task
3858
+ * @description Task description (truncated to 120 chars)
3859
+ */
3860
+ task: string;
3861
+ };
3862
+ /** PersonalAgentTool */
3863
+ PersonalAgentTool: {
3864
+ /**
3865
+ * @description discriminator enum property added by openapi-typescript
3866
+ * @enum {string}
3867
+ */
3868
+ name: 'personal_agent';
3869
+ /**
3870
+ * Description
3871
+ * @default personal agent
3872
+ */
3873
+ description: string;
3874
+ tool_args: components['schemas']['PersonalAgentToolArgs'];
3875
+ /**
3876
+ * Tool Responses
3877
+ * @default {}
3878
+ */
3879
+ tool_responses: {
3880
+ [key: string]: unknown;
3881
+ };
3882
+ };
3883
+ /**
3884
+ * PersonalAgentToolArgs
3885
+ * @description Typed arguments for personal agent tool.
3886
+ */
3887
+ PersonalAgentToolArgs: {
3888
+ /** Task */
3889
+ task: string;
3890
+ };
3505
3891
  /**
3506
3892
  * PlanningLLMConfig
3507
3893
  * @description Configuration for PlanningLLM — generates research plans on demand.
@@ -3520,7 +3906,7 @@ interface components {
3520
3906
  /**
3521
3907
  * Model Name
3522
3908
  * @description The model for plan generation. Defaults to reasoning model.
3523
- * @default GPTOSS120@ARBICITY
3909
+ * @default Wise
3524
3910
  */
3525
3911
  MODEL_NAME: string;
3526
3912
  /**
@@ -3633,25 +4019,13 @@ interface components {
3633
4019
  /**
3634
4020
  * Model Name
3635
4021
  * @description The model for query answering.
3636
- * @default Q3VL@ARBICITY
4022
+ * @default Fast
3637
4023
  */
3638
4024
  MODEL_NAME: string;
3639
4025
  /**
3640
4026
  * System Instruction
3641
4027
  * @description The system instruction string.
3642
- * @default You are ARBI, an AI assistant created by ARBI CITY.
3643
- *
3644
- * You maintain formal, objective tone appropriate for professional/legal contexts. If any part of the answer is based on general knowledge instead of the supplied sources, you must state so clearly and recognise that it may not be accurate.You can ask a follow-up question instead of answering immediately if you are confused by the question and unable to intuit the user's intent.
3645
- *
3646
- * Structure responses with clear headings and logical organization:
3647
- * - Use hierarchical organization: main conclusion first, followed by supporting points
3648
- * - Bullet points for lists of discrete items
3649
- * - Numbering for sequential steps or prioritized items
3650
- * - Bold text for critical conclusions or decision points
3651
- *
3652
- * You should recognise that not all assertions in the sources are factual. Some are mere assertions/arguments by the author, particularly in a legal context where different parties may express different opinions or even contradict each other's factual narrative. The best way to handle this is usually to attribute where the information comes from. I.e. according to xx document, or xx party.
3653
- *
3654
- * You should avoid generalisations and provide exact quotations where possible. Never make up citations, facts or other information. Acknowledge uncertainty where source materials are insufficient or ambiguous.
4028
+ * @default 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.
3655
4029
  */
3656
4030
  SYSTEM_INSTRUCTION: string;
3657
4031
  /**
@@ -3673,6 +4047,23 @@ interface components {
3673
4047
  */
3674
4048
  MAX_TOKENS: number;
3675
4049
  };
4050
+ /**
4051
+ * ReadUrlDetail
4052
+ * @description Detail for a read_url tool call.
4053
+ */
4054
+ ReadUrlDetail: {
4055
+ /**
4056
+ * Tool
4057
+ * @default read_url
4058
+ * @constant
4059
+ */
4060
+ tool: 'read_url';
4061
+ /**
4062
+ * Url
4063
+ * @description URL to fetch (truncated to 120 chars)
4064
+ */
4065
+ url: string;
4066
+ };
3676
4067
  /**
3677
4068
  * RegisterRequest
3678
4069
  * @description Unified user registration request (local and SSO).
@@ -3726,6 +4117,12 @@ interface components {
3726
4117
  };
3727
4118
  /** RerankerConfig */
3728
4119
  RerankerConfig: {
4120
+ /**
4121
+ * Min Score
4122
+ * @description Minimum reranker score for a chunk to be kept. With the Qwen3 strict fact-matching instruction, relevant chunks score 0.1+ and noise is typically < 0.005.
4123
+ * @default 0.01
4124
+ */
4125
+ MIN_SCORE: number;
3729
4126
  /**
3730
4127
  * Max Numb Of Chunks
3731
4128
  * @description Maximum number of chunks to return after reranking.
@@ -3751,12 +4148,25 @@ interface components {
3751
4148
  * @enum {string}
3752
4149
  */
3753
4150
  API_TYPE: 'local' | 'remote';
4151
+ };
4152
+ /**
4153
+ * ResponseCompleteMessage
4154
+ * @description Background response finished — frontend can reload the conversation.
4155
+ */
4156
+ ResponseCompleteMessage: {
4157
+ /**
4158
+ * Type
4159
+ * @default response_complete
4160
+ * @constant
4161
+ */
4162
+ type: 'response_complete';
4163
+ /** Response Id */
4164
+ response_id: string;
3754
4165
  /**
3755
- * Query Instruction
3756
- * @description Instruction for Qwen3-style reranker models. Set empty to disable instruction formatting.
3757
- * @default Given a user query, retrieve relevant passages from documents that answer the query
4166
+ * Status
4167
+ * @enum {string}
3758
4168
  */
3759
- QUERY_INSTRUCTION: string;
4169
+ status: 'completed' | 'failed';
3760
4170
  };
3761
4171
  /**
3762
4172
  * ResponseCompletedEvent
@@ -4120,6 +4530,113 @@ interface components {
4120
4530
  /** @description Detailed breakdown of output tokens */
4121
4531
  output_tokens_details?: components['schemas']['OutputTokensDetails'];
4122
4532
  };
4533
+ /**
4534
+ * ResponsesAPIOutputMessage
4535
+ * @description Message output item.
4536
+ */
4537
+ ResponsesAPIOutputMessage: {
4538
+ /**
4539
+ * Type
4540
+ * @default message
4541
+ * @constant
4542
+ */
4543
+ type: 'message';
4544
+ /** Id */
4545
+ id: string;
4546
+ /**
4547
+ * Status
4548
+ * @enum {string}
4549
+ */
4550
+ status: 'completed' | 'in_progress';
4551
+ /**
4552
+ * Role
4553
+ * @default assistant
4554
+ * @constant
4555
+ */
4556
+ role: 'assistant';
4557
+ /**
4558
+ * Content
4559
+ * @default []
4560
+ */
4561
+ content: (components['schemas']['ResponsesAPIOutputText'] | {
4562
+ [key: string]: unknown;
4563
+ })[];
4564
+ };
4565
+ /**
4566
+ * ResponsesAPIOutputText
4567
+ * @description Text output content item.
4568
+ */
4569
+ ResponsesAPIOutputText: {
4570
+ /**
4571
+ * Type
4572
+ * @default output_text
4573
+ * @constant
4574
+ */
4575
+ type: 'output_text';
4576
+ /** Text */
4577
+ text: string;
4578
+ /**
4579
+ * Annotations
4580
+ * @default []
4581
+ */
4582
+ annotations: {
4583
+ [key: string]: unknown;
4584
+ }[];
4585
+ };
4586
+ /**
4587
+ * ResponsesAPIResponse
4588
+ * @description OpenAI Responses API response envelope.
4589
+ */
4590
+ ResponsesAPIResponse: {
4591
+ /** Id */
4592
+ id: string;
4593
+ /**
4594
+ * Object
4595
+ * @default response
4596
+ * @constant
4597
+ */
4598
+ object: 'response';
4599
+ /**
4600
+ * Status
4601
+ * @enum {string}
4602
+ */
4603
+ status: 'completed' | 'in_progress' | 'queued' | 'cancelled' | 'failed' | 'incomplete';
4604
+ /** Created At */
4605
+ created_at?: number | null;
4606
+ /** Model */
4607
+ model?: string | null;
4608
+ /**
4609
+ * Background
4610
+ * @default false
4611
+ */
4612
+ background: boolean;
4613
+ /**
4614
+ * Output
4615
+ * @default []
4616
+ */
4617
+ output: components['schemas']['ResponsesAPIOutputMessage'][];
4618
+ usage?: components['schemas']['ResponsesAPIUsage'] | null;
4619
+ /** Error */
4620
+ error?: {
4621
+ [key: string]: unknown;
4622
+ } | null;
4623
+ /** Metadata */
4624
+ metadata?: {
4625
+ [key: string]: unknown;
4626
+ } | null;
4627
+ };
4628
+ /**
4629
+ * ResponsesAPIUsage
4630
+ * @description Token usage stats.
4631
+ */
4632
+ ResponsesAPIUsage: {
4633
+ /** Input Tokens */
4634
+ input_tokens: number;
4635
+ /** Output Tokens */
4636
+ output_tokens: number;
4637
+ /** Total Tokens */
4638
+ total_tokens: number;
4639
+ };
4123
4640
  /** RetrievalChunkTool */
4124
4641
  RetrievalChunkTool: {
4125
4642
  /**
@@ -4304,7 +4821,7 @@ interface components {
4304
4821
  /**
4305
4822
  * Model Name
4306
4823
  * @description The model for reviewing agent draft answers. Defaults to reasoning model.
4307
- * @default GPTOSS120@ARBICITY
4824
+ * @default Wise
4308
4825
  */
4309
4826
  MODEL_NAME: string;
4310
4827
  /**
@@ -4342,6 +4859,59 @@ interface components {
4342
4859
  */
4343
4860
  MAX_CHAR_SIZE_TO_ANSWER: number;
4344
4861
  };
4862
+ /**
4863
+ * RunCodeConfig
4864
+ * @description Configuration for the run_code agent tool (Docker sandbox).
4865
+ */
4866
+ RunCodeConfig: {
4867
+ /**
4868
+ * Enabled
4869
+ * @description Enable the run_code tool for sandboxed code execution.
4870
+ * @default false
4871
+ */
4872
+ ENABLED: boolean;
4873
+ /**
4874
+ * Image
4875
+ * @description Docker image for sandbox containers.
4876
+ * @default arbi-sandbox:bookworm-slim
4877
+ */
4878
+ IMAGE: string;
4879
+ /**
4880
+ * Timeout Seconds
4881
+ * @description Maximum execution time per run_code call (seconds).
4882
+ * @default 60
4883
+ */
4884
+ TIMEOUT_SECONDS: number;
4885
+ /**
4886
+ * Memory Limit
4887
+ * @description Container memory limit (Docker format, e.g. '256m', '1g').
4888
+ * @default 512m
4889
+ */
4890
+ MEMORY_LIMIT: string;
4891
+ /**
4892
+ * Network
4893
+ * @description Container network mode. 'bridge' allows internet (pip/npm install). 'none' for full isolation.
4894
+ * @default bridge
4895
+ */
4896
+ NETWORK: string;
4897
+ };
4898
+ /**
4899
+ * RunCodeDetail
4900
+ * @description Detail for a run_code tool call.
4901
+ */
4902
+ RunCodeDetail: {
4903
+ /**
4904
+ * Tool
4905
+ * @default run_code
4906
+ * @constant
4907
+ */
4908
+ tool: 'run_code';
4909
+ /**
4910
+ * Task Length
4911
+ * @description Length of the task description
4912
+ */
4913
+ task_length: number;
4914
+ };
4345
4915
  /**
4346
4916
  * SSESchemas
4347
4917
  * @description Container for all SSE event schemas — drives OpenAPI component generation.
@@ -4372,6 +4942,21 @@ interface components {
4372
4942
  output_tokens_details?: components['schemas']['OutputTokensDetails'] | null;
4373
4943
  context_usage?: components['schemas']['ContextUsage'] | null;
4374
4944
  message_metadata?: components['schemas']['MessageMetadataPayload'] | null;
4945
+ detail_search_documents?: components['schemas']['SearchDocumentsDetail'] | null;
4946
+ detail_get_document_passages?: components['schemas']['GetDocumentPassagesDetail'] | null;
4947
+ detail_get_table_of_contents?: components['schemas']['GetTableOfContentsDetail'] | null;
4948
+ detail_view_document_pages?: components['schemas']['ViewDocumentPagesDetail'] | null;
4949
+ detail_get_full_document?: components['schemas']['GetFullDocumentDetail'] | null;
4950
+ detail_web_search?: components['schemas']['WebSearchDetail'] | null;
4951
+ detail_personal_agent?: components['schemas']['PersonalAgentDetail'] | null;
4952
+ detail_read_url?: components['schemas']['ReadUrlDetail'] | null;
4953
+ detail_create_plan?: components['schemas']['CreatePlanDetail'] | null;
4954
+ detail_save_skill?: components['schemas']['SaveSkillDetail'] | null;
4955
+ detail_run_code?: components['schemas']['RunCodeDetail'] | null;
4956
+ detail_create_artifact?: components['schemas']['CreateArtifactDetail'] | null;
4957
+ detail_ask_user?: components['schemas']['AskUserDetail'] | null;
4958
+ detail_evaluation?: components['schemas']['EvaluationDetail'] | null;
4959
+ detail_tool_progress?: components['schemas']['ToolProgressDetail'] | null;
4375
4960
  };
4376
4961
  /** SSOSendVerificationEmailRequest */
4377
4962
  SSOSendVerificationEmailRequest: {
@@ -4427,6 +5012,50 @@ interface components {
4427
5012
  /** Family Name */
4428
5013
  family_name?: string | null;
4429
5014
  };
5015
+ /**
5016
+ * SaveSkillDetail
5017
+ * @description Detail for a save_skill tool call.
5018
+ */
5019
+ SaveSkillDetail: {
5020
+ /**
5021
+ * Tool
5022
+ * @default save_skill
5023
+ * @constant
5024
+ */
5025
+ tool: 'save_skill';
5026
+ /**
5027
+ * Name
5028
+ * @description Skill name
5029
+ */
5030
+ name: string;
5031
+ /**
5032
+ * Title
5033
+ * @description Skill title (truncated to 80 chars)
5034
+ */
5035
+ title: string;
5036
+ };
5037
+ /**
5038
+ * SearchDocumentsDetail
5039
+ * @description Detail for a search_documents tool call.
5040
+ */
5041
+ SearchDocumentsDetail: {
5042
+ /**
5043
+ * Tool
5044
+ * @default search_documents
5045
+ * @constant
5046
+ */
5047
+ tool: 'search_documents';
5048
+ /**
5049
+ * Query
5050
+ * @description Search query (truncated to 80 chars)
5051
+ */
5052
+ query: string;
5053
+ /**
5054
+ * Search Mode
5055
+ * @description Search mode: hybrid, semantic, keyword
5056
+ */
5057
+ search_mode: string;
5058
+ };
4430
5059
  /**
4431
5060
  * SearchMode
4432
5061
  * @description Search mode for retrieval.
@@ -4465,6 +5094,48 @@ interface components {
4465
5094
  */
4466
5095
  detail: string;
4467
5096
  };
5097
+ /**
5098
+ * StepUsage
5099
+ * @description Per-step token usage from a single LLM call.
5100
+ */
5101
+ StepUsage: {
5102
+ /**
5103
+ * Input Tokens
5104
+ * @description Prompt tokens for this step
5105
+ */
5106
+ input_tokens: number;
5107
+ /**
5108
+ * Output Tokens
5109
+ * @description Completion tokens for this step
5110
+ */
5111
+ output_tokens: number;
5112
+ /**
5113
+ * Reasoning Tokens
5114
+ * @description Reasoning tokens for this step
5115
+ * @default 0
5116
+ */
5117
+ reasoning_tokens: number;
5118
+ /**
5119
+ * Model
5120
+ * @description LLM model used for this step
5121
+ */
5122
+ model?: string | null;
5123
+ };
5124
+ /** StreamEventsTool */
5125
+ StreamEventsTool: {
5126
+ /**
5127
+ * @description discriminator enum property added by openapi-typescript
5128
+ * @enum {string}
5129
+ */
5130
+ name: 'stream_events';
5131
+ /**
5132
+ * Events
5133
+ * @default []
5134
+ */
5135
+ events: {
5136
+ [key: string]: unknown;
5137
+ }[];
5138
+ };
4468
5139
  /**
4469
5140
  * SubscriptionInfo
4470
5141
  * @description Subscription info exposed to frontend in user settings.
@@ -4539,7 +5210,7 @@ interface components {
4539
5210
  /**
4540
5211
  * Model Name
4541
5212
  * @description The model for conversation summarisation. Defaults to reasoning model.
4542
- * @default GPTOSS120@ARBICITY
5213
+ * @default Wise
4543
5214
  */
4544
5215
  MODEL_NAME: string;
4545
5216
  /**
@@ -4608,7 +5279,7 @@ interface components {
4608
5279
  * Type-specific fields:
4609
5280
  * - select: options (list of choices, can be single or multi-select)
4610
5281
  * - search: tag name is the query, chunks include relevance scores
4611
- * - checkbox, text, number, folder: type only
5282
+ * - checkbox, text, number: type only
4612
5283
  */
4613
5284
  TagFormat: {
4614
5285
  /**
@@ -4616,7 +5287,7 @@ interface components {
4616
5287
  * @default checkbox
4617
5288
  * @enum {string}
4618
5289
  */
4619
- type: 'checkbox' | 'text' | 'number' | 'select' | 'folder' | 'search' | 'date';
5290
+ type: 'checkbox' | 'text' | 'number' | 'select' | 'search' | 'date';
4620
5291
  /**
4621
5292
  * Options
4622
5293
  * @default []
@@ -4717,7 +5388,7 @@ interface components {
4717
5388
  /**
4718
5389
  * Model Name
4719
5390
  * @description The name of the non-reasoning model to be used.
4720
- * @default Q3VL@ARBICITY
5391
+ * @default Fast
4721
5392
  */
4722
5393
  MODEL_NAME: string;
4723
5394
  /**
@@ -4854,6 +5525,24 @@ interface components {
4854
5525
  * @description Model used for the LLM call
4855
5526
  */
4856
5527
  model_name?: string | null;
5528
+ /** @description Aggregate usage across all LLM calls in the request */
5529
+ all_llm_calls?: components['schemas']['AllLlmCallsAggregate'] | null;
5530
+ };
5531
+ /**
5532
+ * ToolProgressDetail
5533
+ * @description Detail for a tool progress update.
5534
+ */
5535
+ ToolProgressDetail: {
5536
+ /**
5537
+ * Tool
5538
+ * @description Tool name
5539
+ */
5540
+ tool: string;
5541
+ /**
5542
+ * Message
5543
+ * @description Progress message
5544
+ */
5545
+ message: string;
4857
5546
  };
4858
5547
  /**
4859
5548
  * TraceTool
@@ -5030,7 +5719,7 @@ interface components {
5030
5719
  content: string;
5031
5720
  /** Tools */
5032
5721
  tools?: {
5033
- [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'];
5722
+ [key: string]: components['schemas']['ModelCitationTool'] | components['schemas']['RetrievalChunkTool'] | components['schemas']['RetrievalFullContextTool'] | components['schemas']['RetrievalTOCTool'] | components['schemas']['TraceTool'] | components['schemas']['CompactionTool'] | components['schemas']['PersonalAgentTool'] | components['schemas']['StreamEventsTool'];
5034
5723
  };
5035
5724
  /** Config Ext Id */
5036
5725
  config_ext_id?: string | null;
@@ -5097,6 +5786,11 @@ interface components {
5097
5786
  * @default []
5098
5787
  */
5099
5788
  pinned_workspaces: string[];
5789
+ /**
5790
+ * Pinned Templates
5791
+ * @default []
5792
+ */
5793
+ pinned_templates: string[];
5100
5794
  /**
5101
5795
  * Tableviews
5102
5796
  * @default []
@@ -5139,9 +5833,14 @@ interface components {
5139
5833
  show_help_page: boolean;
5140
5834
  /**
5141
5835
  * Show Templates
5142
- * @default false
5836
+ * @default true
5143
5837
  */
5144
5838
  show_templates: boolean;
5839
+ /**
5840
+ * Show Pa Mode
5841
+ * @default false
5842
+ */
5843
+ show_pa_mode: boolean;
5145
5844
  /**
5146
5845
  * Hide Online Status
5147
5846
  * @default false
@@ -5166,6 +5865,8 @@ interface components {
5166
5865
  subscription?: components['schemas']['TrialUpdate'] | null;
5167
5866
  /** Pinned Workspaces */
5168
5867
  pinned_workspaces?: string[] | null;
5868
+ /** Pinned Templates */
5869
+ pinned_templates?: string[] | null;
5169
5870
  /** Tableviews */
5170
5871
  tableviews?: components['schemas']['TableView'][] | null;
5171
5872
  /** Show Document Navigator */
@@ -5182,6 +5883,8 @@ interface components {
5182
5883
  show_help_page?: boolean | null;
5183
5884
  /** Show Templates */
5184
5885
  show_templates?: boolean | null;
5886
+ /** Show Pa Mode */
5887
+ show_pa_mode?: boolean | null;
5185
5888
  /** Hide Online Status */
5186
5889
  hide_online_status?: boolean | null;
5187
5890
  /** Muted Users */
@@ -5195,6 +5898,10 @@ interface components {
5195
5898
  msg: string;
5196
5899
  /** Error Type */
5197
5900
  type: string;
5901
+ /** Input */
5902
+ input?: unknown;
5903
+ /** Context */
5904
+ ctx?: Record<string, never>;
5198
5905
  };
5199
5906
  /** VerifyEmailRequest */
5200
5907
  VerifyEmailRequest: {
@@ -5209,6 +5916,33 @@ interface components {
5209
5916
  /** Detail */
5210
5917
  detail: string;
5211
5918
  };
5919
+ /**
5920
+ * ViewDocumentPagesDetail
5921
+ * @description Detail for a view_document_pages tool call.
5922
+ */
5923
+ ViewDocumentPagesDetail: {
5924
+ /**
5925
+ * Tool
5926
+ * @default view_document_pages
5927
+ * @constant
5928
+ */
5929
+ tool: 'view_document_pages';
5930
+ /**
5931
+ * Doc Ext Id
5932
+ * @description Document external ID
5933
+ */
5934
+ doc_ext_id: string;
5935
+ /**
5936
+ * From Page
5937
+ * @description Start page number
5938
+ */
5939
+ from_page: number;
5940
+ /**
5941
+ * To Page
5942
+ * @description End page number
5943
+ */
5944
+ to_page: number;
5945
+ };
5212
5946
  /**
5213
5947
  * VisionLLMConfig
5214
5948
  * @description Configuration for VisionLLM — visually inspects document pages.
@@ -5228,7 +5962,7 @@ interface components {
5228
5962
  /**
5229
5963
  * Model Name
5230
5964
  * @description The vision-capable model name (must support image inputs).
5231
- * @default Q3VL@ARBICITY
5965
+ * @default Fast
5232
5966
  */
5233
5967
  MODEL_NAME: string;
5234
5968
  /**
@@ -5274,6 +6008,23 @@ interface components {
5274
6008
  */
5275
6009
  SAVE_SOURCES: boolean;
5276
6010
  };
6011
+ /**
6012
+ * WebSearchDetail
6013
+ * @description Detail for a web_search tool call.
6014
+ */
6015
+ WebSearchDetail: {
6016
+ /**
6017
+ * Tool
6018
+ * @default web_search
6019
+ * @constant
6020
+ */
6021
+ tool: 'web_search';
6022
+ /**
6023
+ * Query
6024
+ * @description Search query (truncated to 80 chars)
6025
+ */
6026
+ query: string;
6027
+ };
5277
6028
  /**
5278
6029
  * WebSocketSchemas
5279
6030
  * @description Container for all WebSocket message schemas.
@@ -5289,6 +6040,7 @@ interface components {
5289
6040
  error?: components['schemas']['ErrorMessage'] | null;
5290
6041
  task_update?: components['schemas']['TaskUpdateMessage'] | null;
5291
6042
  batch_complete?: components['schemas']['BatchCompleteMessage'] | null;
6043
+ response_complete?: components['schemas']['ResponseCompleteMessage'] | null;
5292
6044
  notification?: components['schemas']['NotificationResponse'] | null;
5293
6045
  auth?: components['schemas']['AuthMessage'] | null;
5294
6046
  send_message?: components['schemas']['SendMessageRequest'] | null;
@@ -6387,6 +7139,8 @@ interface operations {
6387
7139
  wp_type?: string | null;
6388
7140
  /** @description Tag to link the document to */
6389
7141
  tag_ext_id?: string | null;
7142
+ /** @description Optional logical folder path (URL safe) */
7143
+ folder?: string | null;
6390
7144
  };
6391
7145
  header?: never;
6392
7146
  path?: never;
@@ -7587,7 +8341,7 @@ interface operations {
7587
8341
  };
7588
8342
  };
7589
8343
  };
7590
- query_v1_responses_post: {
8344
+ create_response: {
7591
8345
  parameters: {
7592
8346
  query?: never;
7593
8347
  header?: never;
@@ -7606,7 +8360,47 @@ interface operations {
7606
8360
  [name: string]: unknown;
7607
8361
  };
7608
8362
  content: {
7609
- 'application/json': unknown;
8363
+ 'text/event-stream': unknown;
8364
+ };
8365
+ };
8366
+ /** @description Accepted */
8367
+ 202: {
8368
+ headers: {
8369
+ [name: string]: unknown;
8370
+ };
8371
+ content: {
8372
+ 'application/json': components['schemas']['ResponsesAPIResponse'];
8373
+ };
8374
+ };
8375
+ /** @description Validation Error */
8376
+ 422: {
8377
+ headers: {
8378
+ [name: string]: unknown;
8379
+ };
8380
+ content: {
8381
+ 'application/json': components['schemas']['HTTPValidationError'];
8382
+ };
8383
+ };
8384
+ };
8385
+ };
8386
+ get_response: {
8387
+ parameters: {
8388
+ query?: never;
8389
+ header?: never;
8390
+ path: {
8391
+ response_id: string;
8392
+ };
8393
+ cookie?: never;
8394
+ };
8395
+ requestBody?: never;
8396
+ responses: {
8397
+ /** @description Successful Response */
8398
+ 200: {
8399
+ headers: {
8400
+ [name: string]: unknown;
8401
+ };
8402
+ content: {
8403
+ 'application/json': components['schemas']['ResponsesAPIResponse'];
7610
8404
  };
7611
8405
  };
7612
8406
  /** @description Validation Error */
@@ -8316,8 +9110,9 @@ type WsConnectionClosedMessage = components['schemas']['ConnectionClosedMessage'
8316
9110
  type WsErrorMessage = components['schemas']['ErrorMessage'];
8317
9111
  type WsPresenceUpdateMessage = components['schemas']['PresenceUpdateMessage'];
8318
9112
  type WsNotificationResponse = components['schemas']['NotificationResponse'];
9113
+ type WsResponseCompleteMessage = components['schemas']['ResponseCompleteMessage'];
8319
9114
  /** Union of all server → client message types (discriminated on `type` field). */
8320
- type WebSocketServerMessage = WsTaskUpdateMessage | WsAuthResultMessage | WsConnectionClosedMessage | WsPresenceUpdateMessage | WsErrorMessage | WsNotificationResponse | WsBatchCompleteMessage;
9115
+ type WebSocketServerMessage = WsTaskUpdateMessage | WsAuthResultMessage | WsConnectionClosedMessage | WsPresenceUpdateMessage | WsErrorMessage | WsNotificationResponse | WsBatchCompleteMessage | WsResponseCompleteMessage;
8321
9116
  /** Union of all client → server message types. */
8322
9117
  type WebSocketClientMessage = WsAuthMessage;
8323
9118
  /**
@@ -8370,4 +9165,4 @@ declare function isMessageType<T extends WebSocketServerMessage>(msg: WebSocketS
8370
9165
  */
8371
9166
  declare function createReloginHandler(deps: ReloginDeps): () => Promise<string | null>;
8372
9167
 
8373
- export { type $defs, API_PREFIX, type ArbiClient, type ArbiClientOptions, type AuthStateProvider, type AutoReloginMiddlewareConfig, type BearerAuthMiddlewareConfig, type ChangePasswordParams, type ChangePasswordRequest, type ChangePasswordResult, type CryptoProvider, type KeyPair, type LoginCredentials, type LoginParams, type LoginProvider, type LoginRequest, type LoginResult, type LoginWithKeyParams, type OnReloginSuccess, type PasswordChangeCredentials, type RegisterParams, type RegisterRequest, type RegisterResult, type RegistrationCredentials, type ReloginDeps, type ReloginHandler, type SessionData, type SessionKeys, type SessionManager, type SessionState, type SessionStorageProvider, type SsoTokenProvider, type TokenProvider, type UserKeypairs, type WebSocketClientMessage, type WebSocketServerMessage, type WorkspaceKeyMiddlewareConfig, type WorkspaceKeyProvider, type WorkspaceKeyRefreshProvider, type WorkspaceKeyUrlConfig, type WorkspaceOpenProvider, type WsAuthMessage, type WsAuthResultMessage, type WsBatchCompleteMessage, type WsConnectionClosedMessage, type WsErrorMessage, type WsNotificationResponse, type WsPresenceUpdateMessage, type WsTaskUpdateMessage, base64Decode, base64Encode, base64ToBytes, buildWebSocketUrl, bytesToBase64, clearAllData, clearSession, type components, computeSharedSecret, createArbiClient, createAuthMessage, createAutoReloginMiddleware, createBearerAuthMiddleware, createReloginHandler, createSessionManager, createWorkspaceKeyHeader, createWorkspaceKeyMiddleware, decryptMessage, decryptMessageWithSharedSecret, deriveEncryptionKeypairFromSigning, derivePublicKey, encryptMessage, encryptMessageWithSharedSecret, generateKeyPairs, generateLoginCredentials, generateLoginCredentialsFromKey, generatePasswordChangeCredentials, generateRecoveryPasswordChangeCredentials, generateRegistrationCredentials, generateUserKeypairs, getSession, hasSession, initSodium, initializeDatabase, isMessageType, needsWorkspaceKey, type operations, parseServerMessage, type paths, saveSession, sealedBoxDecrypt, sealedBoxEncrypt, signMessage, updateSigningPrivateKey, type webhooks };
9168
+ export { type $defs, API_PREFIX, type ArbiClient, type ArbiClientOptions, type AuthStateProvider, type AutoReloginMiddlewareConfig, type BearerAuthMiddlewareConfig, type ChangePasswordParams, type ChangePasswordRequest, type ChangePasswordResult, type CryptoProvider, type KeyPair, type LoginCredentials, type LoginParams, type LoginProvider, type LoginRequest, type LoginResult, type LoginWithKeyParams, type OnReloginSuccess, type PasswordChangeCredentials, type RegisterParams, type RegisterRequest, type RegisterResult, type RegistrationCredentials, type ReloginDeps, type ReloginHandler, type SessionData, type SessionKeys, type SessionManager, type SessionState, type SessionStorageProvider, type SsoTokenProvider, type TokenProvider, type UserKeypairs, type WebSocketClientMessage, type WebSocketServerMessage, type WorkspaceKeyMiddlewareConfig, type WorkspaceKeyProvider, type WorkspaceKeyRefreshProvider, type WorkspaceKeyUrlConfig, type WorkspaceOpenProvider, type WsAuthMessage, type WsAuthResultMessage, type WsBatchCompleteMessage, type WsConnectionClosedMessage, type WsErrorMessage, type WsNotificationResponse, type WsPresenceUpdateMessage, type WsResponseCompleteMessage, type WsTaskUpdateMessage, base64Decode, base64Encode, base64ToBytes, buildWebSocketUrl, bytesToBase64, clearAllData, clearSession, type components, computeSharedSecret, createArbiClient, createAuthMessage, createAutoReloginMiddleware, createBearerAuthMiddleware, createReloginHandler, createSessionManager, createWorkspaceKeyHeader, createWorkspaceKeyMiddleware, decryptMessage, decryptMessageWithSharedSecret, deriveEncryptionKeypairFromSigning, derivePublicKey, encryptMessage, encryptMessageWithSharedSecret, generateKeyPairs, generateLoginCredentials, generateLoginCredentialsFromKey, generatePasswordChangeCredentials, generateRecoveryPasswordChangeCredentials, generateRegistrationCredentials, generateUserKeypairs, getSession, hasSession, initSodium, initializeDatabase, isMessageType, needsWorkspaceKey, type operations, parseServerMessage, type paths, saveSession, sealedBoxDecrypt, sealedBoxEncrypt, signMessage, updateSigningPrivateKey, type webhooks };