@blazingagents/sdk 0.28.0 → 0.28.1
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.
|
@@ -32,8 +32,11 @@ export declare const AGENT_TOOL_FILE_ACCESS_TAGS: readonly ["file_read", "file_w
|
|
|
32
32
|
export type AgentToolFileAccessTag = (typeof AGENT_TOOL_FILE_ACCESS_TAGS)[number];
|
|
33
33
|
export declare const AGENT_TOOL_TAGS: readonly [...("files" | "memory" | "planning" | "web")[], "file_read", "file_write", "execute"];
|
|
34
34
|
export type AgentToolTag = AgentToolGroupTag | AgentToolFileAccessTag;
|
|
35
|
-
/** The group tag comes first
|
|
36
|
-
export type AgentToolTags = readonly [
|
|
35
|
+
/** The group tag comes first. Only a file operation tool adds a file access tag, and at most one. */
|
|
36
|
+
export type AgentToolTags = readonly [
|
|
37
|
+
AgentToolGroupTag,
|
|
38
|
+
...AgentToolFileAccessTag[]
|
|
39
|
+
];
|
|
37
40
|
/** @deprecated Use `AgentToolGroupTag`. */
|
|
38
41
|
export type AgentToolCategoryId = AgentToolGroupTag;
|
|
39
42
|
/** @deprecated Use `AGENT_TOOL_GROUPS`, keyed by `tag`. */
|
|
@@ -51,7 +54,7 @@ export interface AgentToolDefinition {
|
|
|
51
54
|
requiresWorkspace: boolean;
|
|
52
55
|
tags: AgentToolTags;
|
|
53
56
|
}
|
|
54
|
-
|
|
57
|
+
declare const CATALOG: readonly [{
|
|
55
58
|
readonly name: "read";
|
|
56
59
|
readonly tags: readonly ["files", "file_read"];
|
|
57
60
|
readonly category: "files";
|
|
@@ -136,7 +139,11 @@ export declare const AGENT_TOOLS: readonly [{
|
|
|
136
139
|
readonly requiresWorkspace: false;
|
|
137
140
|
readonly description: "Search the public web for current results. Each search consumes Usage credit.";
|
|
138
141
|
}];
|
|
139
|
-
export type AgentToolName = (typeof
|
|
142
|
+
export type AgentToolName = (typeof CATALOG)[number]["name"];
|
|
143
|
+
/** Declared rather than inferred, so `tool.tags.includes(tag)` accepts any tag. */
|
|
144
|
+
export declare const AGENT_TOOLS: readonly (AgentToolDefinition & {
|
|
145
|
+
name: AgentToolName;
|
|
146
|
+
})[];
|
|
140
147
|
export declare const agentToolNames: readonly AgentToolName[];
|
|
141
148
|
/** Built-in tool names an approval policy can reference. */
|
|
142
149
|
export declare const builtinToolNames: readonly [...("bash" | "delete_memory" | "edit" | "get_memory" | "glob" | "grep" | "publish_artifacts" | "read" | "save_memory" | "search_memories" | "update_memory" | "web_search" | "write" | "write_todos")[], "activate_skill"];
|
|
@@ -145,3 +152,4 @@ export declare const builtinToolNames: readonly [...("bash" | "delete_memory" |
|
|
|
145
152
|
* for MCP tools are reserved so a caller function never shadows them.
|
|
146
153
|
*/
|
|
147
154
|
export declare const chatFunctionNameSchema: z.ZodString;
|
|
155
|
+
export {};
|
|
@@ -43,7 +43,7 @@ export const AGENT_TOOL_TAGS = [
|
|
|
43
43
|
];
|
|
44
44
|
/** @deprecated Use `AGENT_TOOL_GROUPS`, keyed by `tag`. */
|
|
45
45
|
export const AGENT_TOOL_CATEGORIES = AGENT_TOOL_GROUPS.map(({ tag, ...group }) => ({ id: tag, ...group }));
|
|
46
|
-
|
|
46
|
+
const CATALOG = [
|
|
47
47
|
{
|
|
48
48
|
name: "read",
|
|
49
49
|
tags: ["files", "file_read"],
|
|
@@ -143,6 +143,8 @@ export const AGENT_TOOLS = [
|
|
|
143
143
|
description: "Search the public web for current results. Each search consumes Usage credit.",
|
|
144
144
|
},
|
|
145
145
|
];
|
|
146
|
+
/** Declared rather than inferred, so `tool.tags.includes(tag)` accepts any tag. */
|
|
147
|
+
export const AGENT_TOOLS = CATALOG;
|
|
146
148
|
export const agentToolNames = AGENT_TOOLS.map((tool) => tool.name);
|
|
147
149
|
/** Built-in tool names an approval policy can reference. */
|
|
148
150
|
export const builtinToolNames = [...agentToolNames, "activate_skill"];
|