@inferencesh/sdk 0.41.3 → 0.41.4
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/CHANGELOG.md +5 -0
- package/dist/types.d.ts +35 -1
- package/dist/types.js +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.41.4] - 2026-11-18
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `InterruptDTO.origin` (`InterruptOrigin`): the sub-agent that asked, on an interrupt shown on an ancestor chat's `pending_interrupts`; run interrupt reason `subagent` (api-v1584).
|
|
14
|
+
|
|
10
15
|
## [0.41.3] - 2026-11-17
|
|
11
16
|
|
|
12
17
|
### Added
|
package/dist/types.d.ts
CHANGED
|
@@ -4702,6 +4702,12 @@ export interface InterruptDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
4702
4702
|
resolved_data?: any;
|
|
4703
4703
|
expires_at?: string;
|
|
4704
4704
|
meta?: any;
|
|
4705
|
+
/**
|
|
4706
|
+
* Origin is the sub-agent that asked, on an interrupt a sub-agent's run
|
|
4707
|
+
* raised. Shown on an ancestor chat (its pending_interrupts), ChatID
|
|
4708
|
+
* is the sub-agent's chat, not the one read.
|
|
4709
|
+
*/
|
|
4710
|
+
origin?: InterruptOrigin;
|
|
4705
4711
|
}
|
|
4706
4712
|
/**
|
|
4707
4713
|
* KnowledgeFile represents a file in a knowledge entry
|
|
@@ -8678,6 +8684,34 @@ export declare const InterruptReasonWait: InterruptReason;
|
|
|
8678
8684
|
* answer in time refuses it for the sandbox. Meta is EgressLoginAskMeta.
|
|
8679
8685
|
*/
|
|
8680
8686
|
export declare const InterruptReasonEgressLogin: InterruptReason;
|
|
8687
|
+
/**
|
|
8688
|
+
* InterruptReasonSubagent is a run's reason, never an interrupt's: the run
|
|
8689
|
+
* waits on a question one of its sub-agents' runs asked, shown on its chat
|
|
8690
|
+
* through an interrupt surface (INF-1291). The run's interrupt meta is
|
|
8691
|
+
* SubagentWaitMeta.
|
|
8692
|
+
*/
|
|
8693
|
+
export declare const InterruptReasonSubagent: InterruptReason;
|
|
8694
|
+
/**
|
|
8695
|
+
* InterruptOrigin is the sub-agent an interrupt came from, on an interrupt
|
|
8696
|
+
* a sub-agent's run raised: what an ancestor chat's card names.
|
|
8697
|
+
*/
|
|
8698
|
+
export interface InterruptOrigin {
|
|
8699
|
+
/**
|
|
8700
|
+
* AgentID and AgentRef ("namespace/name") are the sub-agent's.
|
|
8701
|
+
*/
|
|
8702
|
+
agent_id?: string;
|
|
8703
|
+
agent_ref?: string;
|
|
8704
|
+
/**
|
|
8705
|
+
* ToolInvocationID is the call in the parent chat that delegated to
|
|
8706
|
+
* the sub-agent's chat (the interrupt's ChatID).
|
|
8707
|
+
*/
|
|
8708
|
+
tool_invocation_id?: string;
|
|
8709
|
+
/**
|
|
8710
|
+
* Depth is the sub-agent chat's depth (Chat.Depth), 1 under a chat a
|
|
8711
|
+
* person started.
|
|
8712
|
+
*/
|
|
8713
|
+
depth: number;
|
|
8714
|
+
}
|
|
8681
8715
|
/**
|
|
8682
8716
|
* MergeStrategy defines how a delta field should be merged by consumers.
|
|
8683
8717
|
*/
|
|
@@ -9996,7 +10030,7 @@ export declare const AgentRunStateRejected: AgentRunState;
|
|
|
9996
10030
|
* InterruptReason describes why an agent run is in an interrupted state.
|
|
9997
10031
|
* Aligns with AG-UI interrupt outcome reasons.
|
|
9998
10032
|
*/
|
|
9999
|
-
export type InterruptReason = "wait" | "egress_login" | "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate" | "input";
|
|
10033
|
+
export type InterruptReason = "wait" | "egress_login" | "subagent" | "tool_approval" | "client_tool" | "widget" | "auth" | "confirmation" | "hook_gate" | "input";
|
|
10000
10034
|
export declare const InterruptReasonToolApproval: InterruptReason;
|
|
10001
10035
|
export declare const InterruptReasonClientTool: InterruptReason;
|
|
10002
10036
|
export declare const InterruptReasonWidget: InterruptReason;
|
package/dist/types.js
CHANGED
|
@@ -1582,6 +1582,13 @@ export const InterruptReasonWait = "wait";
|
|
|
1582
1582
|
* answer in time refuses it for the sandbox. Meta is EgressLoginAskMeta.
|
|
1583
1583
|
*/
|
|
1584
1584
|
export const InterruptReasonEgressLogin = "egress_login";
|
|
1585
|
+
/**
|
|
1586
|
+
* InterruptReasonSubagent is a run's reason, never an interrupt's: the run
|
|
1587
|
+
* waits on a question one of its sub-agents' runs asked, shown on its chat
|
|
1588
|
+
* through an interrupt surface (INF-1291). The run's interrupt meta is
|
|
1589
|
+
* SubagentWaitMeta.
|
|
1590
|
+
*/
|
|
1591
|
+
export const InterruptReasonSubagent = "subagent";
|
|
1585
1592
|
export const MergeStrategyConcat = "concat";
|
|
1586
1593
|
export const MergeStrategyReplace = "replace";
|
|
1587
1594
|
export const MergeStrategyIndexed = "indexed";
|