tools/index.ts

brigade · src/agents/tools/index.ts · typescript · MIT
ai, tag:knn-classified

Public entry point re‑exporting tool framework types and helpers.

// Source: https://github.com/spinabot/brigade | License: MIT | Copyright 2026 Spinabot
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Brigade tool framework — public entry point.
 *
 * Re-exports the types, helpers, and registry that tool authors and
 * the agent runtime need. Primitives #4-6 will add tool implementations
 * (`write_memory`, `recall_memory`, `spawn_agent`) as siblings of this
 * file; they are NOT re-exported here so the public surface stays
 * narrow until those primitives stabilise.
 */

export type {
	AgentToolResult,
	AgentToolUpdateCallback,
	AnyBrigadeTool,
	BrigadeTool,
} from "./types.js";

export {
	BrigadeToolAuthorizationError,
	BrigadeToolInputError,
	OWNER_ONLY_TOOL_ERROR,
	failedTextResult,
	jsonResult,
	payloadTextResult,
	readBoole

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key