@anuma/sdk 11.0.1 → 11.2.0

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.mts CHANGED
@@ -7779,7 +7779,13 @@ declare function createStreamingDeAnonymizer(redactor: PiiRedactor, emit: (chunk
7779
7779
  /**
7780
7780
  * Tool executor function type
7781
7781
  */
7782
- type ToolExecutor = (args: Record<string, unknown>, signal?: AbortSignal) => Promise<unknown> | unknown;
7782
+ type ToolExecutor = (args: Record<string, unknown>, signal?: AbortSignal, context?: ToolExecutionContext) => Promise<unknown> | unknown;
7783
+ /** How the portal treats a call to this device tool while the device is away. */
7784
+ type DetachedToolClass = "render" | "deferred";
7785
+ /** Context for one executor run; `detached` marks a call from an answer finished while the device was away. */
7786
+ type ToolExecutionContext = {
7787
+ detached?: boolean;
7788
+ };
7783
7789
  /**
7784
7790
  * Tool configuration with optional executor
7785
7791
  */
@@ -7849,6 +7855,8 @@ type ToolConfig = LlmapiChatCompletionTool & {
7849
7855
  * files from IndexedDB that `create_file` writes.
7850
7856
  */
7851
7857
  dependsOn?: string[];
7858
+ /** How the portal handles a call to this tool while the device is away; unset tools pause the turn. */
7859
+ detachedClass?: DetachedToolClass;
7852
7860
  };
7853
7861
 
7854
7862
  /**
package/dist/index.d.ts CHANGED
@@ -7779,7 +7779,13 @@ declare function createStreamingDeAnonymizer(redactor: PiiRedactor, emit: (chunk
7779
7779
  /**
7780
7780
  * Tool executor function type
7781
7781
  */
7782
- type ToolExecutor = (args: Record<string, unknown>, signal?: AbortSignal) => Promise<unknown> | unknown;
7782
+ type ToolExecutor = (args: Record<string, unknown>, signal?: AbortSignal, context?: ToolExecutionContext) => Promise<unknown> | unknown;
7783
+ /** How the portal treats a call to this device tool while the device is away. */
7784
+ type DetachedToolClass = "render" | "deferred";
7785
+ /** Context for one executor run; `detached` marks a call from an answer finished while the device was away. */
7786
+ type ToolExecutionContext = {
7787
+ detached?: boolean;
7788
+ };
7783
7789
  /**
7784
7790
  * Tool configuration with optional executor
7785
7791
  */
@@ -7849,6 +7855,8 @@ type ToolConfig = LlmapiChatCompletionTool & {
7849
7855
  * files from IndexedDB that `create_file` writes.
7850
7856
  */
7851
7857
  dependsOn?: string[];
7858
+ /** How the portal handles a call to this tool while the device is away; unset tools pause the turn. */
7859
+ detachedClass?: DetachedToolClass;
7852
7860
  };
7853
7861
 
7854
7862
  /**