toolnexus 0.23.0 → 0.24.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/src/types.ts CHANGED
@@ -12,7 +12,7 @@ export type JSONSchema = {
12
12
 
13
13
  import type { ContentPart } from "./content.js"
14
14
 
15
- export type ToolSource = "mcp" | "skill" | "builtin" | "native" | "http" | "a2a" | "custom"
15
+ export type ToolSource = "mcp" | "skill" | "builtin" | "native" | "http" | "a2a" | "media" | "custom"
16
16
 
17
17
  export interface ToolResult {
18
18
  output: string
@@ -130,6 +130,9 @@ export interface Tool {
130
130
  /** What the tool may do (§4C). Builtins always carry hints; MCP tools carry them when the
131
131
  * server sends annotations. Advisory: a server can mislabel its tools. */
132
132
  hints?: ToolHints
133
+ /** Decides per call whether this tool may run alongside other safe calls of the same model
134
+ * response (SPEC §8 "Tool scheduling"). Absent ⇒ safe only when `hints.readOnly`. */
135
+ concurrencySafe?: (args: Record<string, unknown>) => boolean
133
136
  }
134
137
 
135
138
  export type McpStatus = "connected" | "disabled" | "failed"