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/README.md +23 -0
- package/dist/agents/loop.js +4 -1
- package/dist/agents/runtime.js +4 -1
- package/dist/client.d.ts +23 -1
- package/dist/client.js +52 -18
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/media.d.ts +126 -0
- package/dist/media.js +540 -0
- package/dist/toolconcurrency.d.ts +16 -0
- package/dist/toolconcurrency.js +59 -0
- package/dist/toolkit.d.ts +3 -0
- package/dist/toolkit.js +1 -1
- package/dist/types.d.ts +4 -1
- package/package.json +3 -2
- package/src/agents/loop.ts +4 -1
- package/src/agents/runtime.ts +4 -1
- package/src/client.ts +72 -21
- package/src/index.ts +2 -0
- package/src/media.ts +604 -0
- package/src/toolconcurrency.ts +67 -0
- package/src/toolkit.ts +4 -1
- package/src/types.ts +4 -1
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"
|