@arbidocs/client 0.3.83 → 0.3.84
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 +69 -8
- package/dist/index.d.ts +69 -8
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2611,12 +2611,12 @@ interface components {
|
|
|
2611
2611
|
* @description System prompt for the agent. Dynamic context is appended automatically.
|
|
2612
2612
|
* @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.
|
|
2613
2613
|
*
|
|
2614
|
-
* 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. If the user
|
|
2614
|
+
* 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. If the user asks about a specific workspace document, call read_document or get_table_of_contents — never answer from memory.
|
|
2615
2615
|
*
|
|
2616
2616
|
* 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.
|
|
2617
2617
|
*
|
|
2618
2618
|
* DOCUMENT INDEX:
|
|
2619
|
-
* The "Workspace Documents" table in your system prompt
|
|
2619
|
+
* The "Workspace Documents" table in your system prompt lists every document with its Id, Title, Date, and Pages. The Subject field is a brief navigation label only — it does not contain enough information to answer questions about a document's content. Use this table directly when the user asks to list, catalogue, or tabulate documents — do NOT call any tools for that. Only use tools when you need to read or search document content.
|
|
2620
2620
|
*
|
|
2621
2621
|
* DOCUMENT STRATEGY:
|
|
2622
2622
|
* - For listing/cataloguing documents: use the document index already in your prompt — no tool calls needed.
|
|
@@ -2624,6 +2624,7 @@ interface components {
|
|
|
2624
2624
|
* - For specific questions: use search_inside_documents to find relevant sections, then read those sections with read_document.
|
|
2625
2625
|
* - For translation, deep analysis, or detailed summaries of a single document: use read_document with no ranges to load the complete text.
|
|
2626
2626
|
* - For extracting structured findings from passages: use read_document with digest=true or search_inside_documents with digest=true.
|
|
2627
|
+
* - For open-ended investigative queries ("find interesting things", "what's notable", "what stands out", "explore X", "what should I know about", "any findings", "anything unusual", "key insights"): ALWAYS call search_inside_documents with multiple diverse queries covering different aspects of the documents before answering. The document index is never sufficient for investigative answers — you must retrieve actual content.
|
|
2627
2628
|
* - Never search for meta-queries like "summary", "overview", or "all documents" — search for the actual subject matter.
|
|
2628
2629
|
*
|
|
2629
2630
|
* FORMATTING:
|
|
@@ -2636,8 +2637,8 @@ interface components {
|
|
|
2636
2637
|
*
|
|
2637
2638
|
* TOOL CALLING:
|
|
2638
2639
|
* - Your job is to gather context by calling tools, then answer only once every reasonable tool call has been made. Do not give a final answer while there is still relevant context you could retrieve.
|
|
2639
|
-
* - Always invoke tools using the tool-calling mechanism.
|
|
2640
|
-
* - If you intend to search or read, issue the tool call
|
|
2640
|
+
* - Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write "Searching for X...", "Reading document Y...", "Calling search_inside_documents" as prose — actually call the tool).
|
|
2641
|
+
* - If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.
|
|
2641
2642
|
*
|
|
2642
2643
|
* EFFICIENCY:
|
|
2643
2644
|
* 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.
|
|
@@ -2714,7 +2715,7 @@ interface components {
|
|
|
2714
2715
|
* "AGENT_MAX_ITERATIONS": 20,
|
|
2715
2716
|
* "AGENT_MAX_PARALLEL_TOOL_CALLS": 10,
|
|
2716
2717
|
* "AGENT_HISTORY_CHAR_THRESHOLD": 8000,
|
|
2717
|
-
* "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. If the user
|
|
2718
|
+
* "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. If the user asks about a specific workspace document, call read_document or get_table_of_contents — never answer from memory.\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 INDEX:\nThe \"Workspace Documents\" table in your system prompt lists every document with its Id, Title, Date, and Pages. The Subject field is a brief navigation label only — it does not contain enough information to answer questions about a document's content. Use this table directly when the user asks to list, catalogue, or tabulate documents — do NOT call any tools for that. Only use tools when you need to read or search document content.\n\nDOCUMENT STRATEGY:\n- For listing/cataloguing documents: use the document index already in your prompt — no tool calls needed.\n- For overview/summary requests: use get_table_of_contents first, then read key sections with read_document.\n- For specific questions: use search_inside_documents to find relevant sections, then read those sections with read_document.\n- For translation, deep analysis, or detailed summaries of a single document: use read_document with no ranges to load the complete text.\n- For extracting structured findings from passages: use read_document with digest=true or search_inside_documents with digest=true.\n- For open-ended investigative queries (\"find interesting things\", \"what's notable\", \"what stands out\", \"explore X\", \"what should I know about\", \"any findings\", \"anything unusual\", \"key insights\"): ALWAYS call search_inside_documents with multiple diverse queries covering different aspects of the documents before answering. The document index is never sufficient for investigative answers — you must retrieve actual content.\n- Never search for meta-queries like \"summary\", \"overview\", or \"all documents\" — 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\nTOOL CALLING:\n- Your job is to gather context by calling tools, then answer only once every reasonable tool call has been made. Do not give a final answer while there is still relevant context you could retrieve.\n- Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write \"Searching for X...\", \"Reading document Y...\", \"Calling search_inside_documents\" as prose — actually call the tool).\n- If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.\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."
|
|
2718
2719
|
* }
|
|
2719
2720
|
*/
|
|
2720
2721
|
Agents: components['schemas']['AgentsConfig'];
|
|
@@ -3465,6 +3466,48 @@ interface components {
|
|
|
3465
3466
|
*/
|
|
3466
3467
|
MAX_ITERATIONS: number;
|
|
3467
3468
|
};
|
|
3469
|
+
/**
|
|
3470
|
+
* CompactionEvent
|
|
3471
|
+
* @description Emitted when the thread was compacted this turn.
|
|
3472
|
+
*
|
|
3473
|
+
* Message-anchored compaction summarises all messages above an anchor message
|
|
3474
|
+
* and stores the summary on that anchor (in place, same thread). The frontend
|
|
3475
|
+
* can surface a "summarised earlier messages" marker at the anchor.
|
|
3476
|
+
*
|
|
3477
|
+
* Example:
|
|
3478
|
+
* {"type": "arbi.compaction",
|
|
3479
|
+
* "anchor_message_ext_id": "msg-1a2b3c4d",
|
|
3480
|
+
* "messages_summarized": 12,
|
|
3481
|
+
* "tokens_saved": 41000}
|
|
3482
|
+
*/
|
|
3483
|
+
CompactionEvent: {
|
|
3484
|
+
/**
|
|
3485
|
+
* T
|
|
3486
|
+
* @description Seconds elapsed since stream start.
|
|
3487
|
+
*/
|
|
3488
|
+
t?: number | null;
|
|
3489
|
+
/**
|
|
3490
|
+
* Type
|
|
3491
|
+
* @default arbi.compaction
|
|
3492
|
+
* @constant
|
|
3493
|
+
*/
|
|
3494
|
+
type: 'arbi.compaction';
|
|
3495
|
+
/**
|
|
3496
|
+
* Anchor Message Ext Id
|
|
3497
|
+
* @description External id of the message carrying the summary
|
|
3498
|
+
*/
|
|
3499
|
+
anchor_message_ext_id: string;
|
|
3500
|
+
/**
|
|
3501
|
+
* Messages Summarized
|
|
3502
|
+
* @description Number of ancestor messages folded into the summary
|
|
3503
|
+
*/
|
|
3504
|
+
messages_summarized: number;
|
|
3505
|
+
/**
|
|
3506
|
+
* Tokens Saved
|
|
3507
|
+
* @description Approximate tokens removed from context (above − summary)
|
|
3508
|
+
*/
|
|
3509
|
+
tokens_saved: number;
|
|
3510
|
+
};
|
|
3468
3511
|
/** CompactionTool */
|
|
3469
3512
|
CompactionTool: {
|
|
3470
3513
|
/**
|
|
@@ -3477,6 +3520,7 @@ interface components {
|
|
|
3477
3520
|
* @default conversation compaction
|
|
3478
3521
|
*/
|
|
3479
3522
|
description: string;
|
|
3523
|
+
/** @default {} */
|
|
3480
3524
|
tool_args: components['schemas']['CompactionToolArgs'];
|
|
3481
3525
|
/**
|
|
3482
3526
|
* Tool Responses
|
|
@@ -3488,13 +3532,29 @@ interface components {
|
|
|
3488
3532
|
};
|
|
3489
3533
|
/**
|
|
3490
3534
|
* CompactionToolArgs
|
|
3491
|
-
* @description
|
|
3535
|
+
* @description Compaction lineage and anchored-compaction metadata.
|
|
3536
|
+
*
|
|
3537
|
+
* Two flavours share this shape:
|
|
3538
|
+
* - Legacy new-conversation compaction set ``source_*`` refs pointing at the
|
|
3539
|
+
* original (now-separate) conversation. These are kept for read-compat.
|
|
3540
|
+
* - Message-anchored compaction (current design) summarises the thread's own
|
|
3541
|
+
* ancestors in place, so it has no source conversation. It records non-
|
|
3542
|
+
* sensitive counts instead. The summary itself lives in
|
|
3543
|
+
* ``CompactionTool.tool_responses["summary"]`` (encrypted).
|
|
3492
3544
|
*/
|
|
3493
3545
|
CompactionToolArgs: {
|
|
3494
3546
|
/** Source Conversation Ext Id */
|
|
3495
|
-
source_conversation_ext_id
|
|
3547
|
+
source_conversation_ext_id?: string | null;
|
|
3496
3548
|
/** Source Leaf Message Ext Id */
|
|
3497
|
-
source_leaf_message_ext_id
|
|
3549
|
+
source_leaf_message_ext_id?: string | null;
|
|
3550
|
+
/** Messages Summarized */
|
|
3551
|
+
messages_summarized?: number | null;
|
|
3552
|
+
/** Tokens Above */
|
|
3553
|
+
tokens_above?: number | null;
|
|
3554
|
+
/** Tokens Summary */
|
|
3555
|
+
tokens_summary?: number | null;
|
|
3556
|
+
/** Model Used */
|
|
3557
|
+
model_used?: string | null;
|
|
3498
3558
|
};
|
|
3499
3559
|
/** ConfigDeleteResponse */
|
|
3500
3560
|
ConfigDeleteResponse: {
|
|
@@ -6981,6 +7041,7 @@ interface components {
|
|
|
6981
7041
|
response_completed?: components['schemas']['ResponseCompletedEvent'] | null;
|
|
6982
7042
|
response_failed?: components['schemas']['ResponseFailedEvent'] | null;
|
|
6983
7043
|
artifact?: components['schemas']['ArtifactEvent'] | null;
|
|
7044
|
+
compaction?: components['schemas']['CompactionEvent'] | null;
|
|
6984
7045
|
token_budget_context?: components['schemas']['TokenBudgetContext'] | null;
|
|
6985
7046
|
response_usage?: components['schemas']['ResponseUsage'] | null;
|
|
6986
7047
|
output_tokens_details?: components['schemas']['OutputTokensDetails'] | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -2611,12 +2611,12 @@ interface components {
|
|
|
2611
2611
|
* @description System prompt for the agent. Dynamic context is appended automatically.
|
|
2612
2612
|
* @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.
|
|
2613
2613
|
*
|
|
2614
|
-
* 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. If the user
|
|
2614
|
+
* 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. If the user asks about a specific workspace document, call read_document or get_table_of_contents — never answer from memory.
|
|
2615
2615
|
*
|
|
2616
2616
|
* 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.
|
|
2617
2617
|
*
|
|
2618
2618
|
* DOCUMENT INDEX:
|
|
2619
|
-
* The "Workspace Documents" table in your system prompt
|
|
2619
|
+
* The "Workspace Documents" table in your system prompt lists every document with its Id, Title, Date, and Pages. The Subject field is a brief navigation label only — it does not contain enough information to answer questions about a document's content. Use this table directly when the user asks to list, catalogue, or tabulate documents — do NOT call any tools for that. Only use tools when you need to read or search document content.
|
|
2620
2620
|
*
|
|
2621
2621
|
* DOCUMENT STRATEGY:
|
|
2622
2622
|
* - For listing/cataloguing documents: use the document index already in your prompt — no tool calls needed.
|
|
@@ -2624,6 +2624,7 @@ interface components {
|
|
|
2624
2624
|
* - For specific questions: use search_inside_documents to find relevant sections, then read those sections with read_document.
|
|
2625
2625
|
* - For translation, deep analysis, or detailed summaries of a single document: use read_document with no ranges to load the complete text.
|
|
2626
2626
|
* - For extracting structured findings from passages: use read_document with digest=true or search_inside_documents with digest=true.
|
|
2627
|
+
* - For open-ended investigative queries ("find interesting things", "what's notable", "what stands out", "explore X", "what should I know about", "any findings", "anything unusual", "key insights"): ALWAYS call search_inside_documents with multiple diverse queries covering different aspects of the documents before answering. The document index is never sufficient for investigative answers — you must retrieve actual content.
|
|
2627
2628
|
* - Never search for meta-queries like "summary", "overview", or "all documents" — search for the actual subject matter.
|
|
2628
2629
|
*
|
|
2629
2630
|
* FORMATTING:
|
|
@@ -2636,8 +2637,8 @@ interface components {
|
|
|
2636
2637
|
*
|
|
2637
2638
|
* TOOL CALLING:
|
|
2638
2639
|
* - Your job is to gather context by calling tools, then answer only once every reasonable tool call has been made. Do not give a final answer while there is still relevant context you could retrieve.
|
|
2639
|
-
* - Always invoke tools using the tool-calling mechanism.
|
|
2640
|
-
* - If you intend to search or read, issue the tool call
|
|
2640
|
+
* - Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write "Searching for X...", "Reading document Y...", "Calling search_inside_documents" as prose — actually call the tool).
|
|
2641
|
+
* - If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.
|
|
2641
2642
|
*
|
|
2642
2643
|
* EFFICIENCY:
|
|
2643
2644
|
* 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.
|
|
@@ -2714,7 +2715,7 @@ interface components {
|
|
|
2714
2715
|
* "AGENT_MAX_ITERATIONS": 20,
|
|
2715
2716
|
* "AGENT_MAX_PARALLEL_TOOL_CALLS": 10,
|
|
2716
2717
|
* "AGENT_HISTORY_CHAR_THRESHOLD": 8000,
|
|
2717
|
-
* "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. If the user
|
|
2718
|
+
* "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. If the user asks about a specific workspace document, call read_document or get_table_of_contents — never answer from memory.\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 INDEX:\nThe \"Workspace Documents\" table in your system prompt lists every document with its Id, Title, Date, and Pages. The Subject field is a brief navigation label only — it does not contain enough information to answer questions about a document's content. Use this table directly when the user asks to list, catalogue, or tabulate documents — do NOT call any tools for that. Only use tools when you need to read or search document content.\n\nDOCUMENT STRATEGY:\n- For listing/cataloguing documents: use the document index already in your prompt — no tool calls needed.\n- For overview/summary requests: use get_table_of_contents first, then read key sections with read_document.\n- For specific questions: use search_inside_documents to find relevant sections, then read those sections with read_document.\n- For translation, deep analysis, or detailed summaries of a single document: use read_document with no ranges to load the complete text.\n- For extracting structured findings from passages: use read_document with digest=true or search_inside_documents with digest=true.\n- For open-ended investigative queries (\"find interesting things\", \"what's notable\", \"what stands out\", \"explore X\", \"what should I know about\", \"any findings\", \"anything unusual\", \"key insights\"): ALWAYS call search_inside_documents with multiple diverse queries covering different aspects of the documents before answering. The document index is never sufficient for investigative answers — you must retrieve actual content.\n- Never search for meta-queries like \"summary\", \"overview\", or \"all documents\" — 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\nTOOL CALLING:\n- Your job is to gather context by calling tools, then answer only once every reasonable tool call has been made. Do not give a final answer while there is still relevant context you could retrieve.\n- Always invoke tools using the tool-calling mechanism. NEVER write text that describes or simulates a tool call (e.g. never write \"Searching for X...\", \"Reading document Y...\", \"Calling search_inside_documents\" as prose — actually call the tool).\n- If you intend to search or read, issue the tool call immediately. Do not narrate your intent first.\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."
|
|
2718
2719
|
* }
|
|
2719
2720
|
*/
|
|
2720
2721
|
Agents: components['schemas']['AgentsConfig'];
|
|
@@ -3465,6 +3466,48 @@ interface components {
|
|
|
3465
3466
|
*/
|
|
3466
3467
|
MAX_ITERATIONS: number;
|
|
3467
3468
|
};
|
|
3469
|
+
/**
|
|
3470
|
+
* CompactionEvent
|
|
3471
|
+
* @description Emitted when the thread was compacted this turn.
|
|
3472
|
+
*
|
|
3473
|
+
* Message-anchored compaction summarises all messages above an anchor message
|
|
3474
|
+
* and stores the summary on that anchor (in place, same thread). The frontend
|
|
3475
|
+
* can surface a "summarised earlier messages" marker at the anchor.
|
|
3476
|
+
*
|
|
3477
|
+
* Example:
|
|
3478
|
+
* {"type": "arbi.compaction",
|
|
3479
|
+
* "anchor_message_ext_id": "msg-1a2b3c4d",
|
|
3480
|
+
* "messages_summarized": 12,
|
|
3481
|
+
* "tokens_saved": 41000}
|
|
3482
|
+
*/
|
|
3483
|
+
CompactionEvent: {
|
|
3484
|
+
/**
|
|
3485
|
+
* T
|
|
3486
|
+
* @description Seconds elapsed since stream start.
|
|
3487
|
+
*/
|
|
3488
|
+
t?: number | null;
|
|
3489
|
+
/**
|
|
3490
|
+
* Type
|
|
3491
|
+
* @default arbi.compaction
|
|
3492
|
+
* @constant
|
|
3493
|
+
*/
|
|
3494
|
+
type: 'arbi.compaction';
|
|
3495
|
+
/**
|
|
3496
|
+
* Anchor Message Ext Id
|
|
3497
|
+
* @description External id of the message carrying the summary
|
|
3498
|
+
*/
|
|
3499
|
+
anchor_message_ext_id: string;
|
|
3500
|
+
/**
|
|
3501
|
+
* Messages Summarized
|
|
3502
|
+
* @description Number of ancestor messages folded into the summary
|
|
3503
|
+
*/
|
|
3504
|
+
messages_summarized: number;
|
|
3505
|
+
/**
|
|
3506
|
+
* Tokens Saved
|
|
3507
|
+
* @description Approximate tokens removed from context (above − summary)
|
|
3508
|
+
*/
|
|
3509
|
+
tokens_saved: number;
|
|
3510
|
+
};
|
|
3468
3511
|
/** CompactionTool */
|
|
3469
3512
|
CompactionTool: {
|
|
3470
3513
|
/**
|
|
@@ -3477,6 +3520,7 @@ interface components {
|
|
|
3477
3520
|
* @default conversation compaction
|
|
3478
3521
|
*/
|
|
3479
3522
|
description: string;
|
|
3523
|
+
/** @default {} */
|
|
3480
3524
|
tool_args: components['schemas']['CompactionToolArgs'];
|
|
3481
3525
|
/**
|
|
3482
3526
|
* Tool Responses
|
|
@@ -3488,13 +3532,29 @@ interface components {
|
|
|
3488
3532
|
};
|
|
3489
3533
|
/**
|
|
3490
3534
|
* CompactionToolArgs
|
|
3491
|
-
* @description
|
|
3535
|
+
* @description Compaction lineage and anchored-compaction metadata.
|
|
3536
|
+
*
|
|
3537
|
+
* Two flavours share this shape:
|
|
3538
|
+
* - Legacy new-conversation compaction set ``source_*`` refs pointing at the
|
|
3539
|
+
* original (now-separate) conversation. These are kept for read-compat.
|
|
3540
|
+
* - Message-anchored compaction (current design) summarises the thread's own
|
|
3541
|
+
* ancestors in place, so it has no source conversation. It records non-
|
|
3542
|
+
* sensitive counts instead. The summary itself lives in
|
|
3543
|
+
* ``CompactionTool.tool_responses["summary"]`` (encrypted).
|
|
3492
3544
|
*/
|
|
3493
3545
|
CompactionToolArgs: {
|
|
3494
3546
|
/** Source Conversation Ext Id */
|
|
3495
|
-
source_conversation_ext_id
|
|
3547
|
+
source_conversation_ext_id?: string | null;
|
|
3496
3548
|
/** Source Leaf Message Ext Id */
|
|
3497
|
-
source_leaf_message_ext_id
|
|
3549
|
+
source_leaf_message_ext_id?: string | null;
|
|
3550
|
+
/** Messages Summarized */
|
|
3551
|
+
messages_summarized?: number | null;
|
|
3552
|
+
/** Tokens Above */
|
|
3553
|
+
tokens_above?: number | null;
|
|
3554
|
+
/** Tokens Summary */
|
|
3555
|
+
tokens_summary?: number | null;
|
|
3556
|
+
/** Model Used */
|
|
3557
|
+
model_used?: string | null;
|
|
3498
3558
|
};
|
|
3499
3559
|
/** ConfigDeleteResponse */
|
|
3500
3560
|
ConfigDeleteResponse: {
|
|
@@ -6981,6 +7041,7 @@ interface components {
|
|
|
6981
7041
|
response_completed?: components['schemas']['ResponseCompletedEvent'] | null;
|
|
6982
7042
|
response_failed?: components['schemas']['ResponseFailedEvent'] | null;
|
|
6983
7043
|
artifact?: components['schemas']['ArtifactEvent'] | null;
|
|
7044
|
+
compaction?: components['schemas']['CompactionEvent'] | null;
|
|
6984
7045
|
token_budget_context?: components['schemas']['TokenBudgetContext'] | null;
|
|
6985
7046
|
response_usage?: components['schemas']['ResponseUsage'] | null;
|
|
6986
7047
|
output_tokens_details?: components['schemas']['OutputTokensDetails'] | null;
|
package/package.json
CHANGED