Skip to content

Variable: ToolNamespace

Makaio Framework


Makaio Framework / contracts / ToolNamespace

const ToolNamespace: BusNamespace<"tool", SubjectRecordFromSchemaRecord<{ completed: ZodObject<{ durationMs: ZodNumber; executionId: ZodString; timestamp: ZodNumber; toolName: ZodString; toolsetName: ZodString; }, $strip>; error: ZodObject<{ error: ZodObject<{ code: ZodString; details: ZodOptional<ZodUnknown>; message: ZodString; }, $strip>; executionId: ZodString; timestamp: ZodNumber; toolName: ZodString; toolsetName: ZodString; }, $strip>; execute: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; adapterName: ZodOptional<ZodString>; contextOverrides: ZodOptional<ZodObject<{ adapterId: ZodOptional<ZodString>; adapterName: ZodOptional<ZodString>; agentId: ZodOptional<ZodString>; constraints: ZodOptional<ZodRecord<…, …>>; cwd: ZodOptional<ZodString>; env: ZodOptional<ZodRecord<…, …>>; reasoning: ZodOptional<ZodString>; sessionId: ZodOptional<ZodString>; toolCallId: ZodOptional<ZodString>; turnContext: ZodOptional<ZodRecord<…, …>>; turnId: ZodOptional<ZodString>; }, $strip>>; input: ZodUnknown; toolName: ZodString; }, $strip>; response: ZodDiscriminatedUnion<[ZodObject<{ data: ZodUnknown; success: ZodLiteral<true>; }, $strip>, ZodObject<{ error: ZodObject<{ code: ZodString; details: ZodOptional<…>; message: ZodString; }, $strip>; success: ZodLiteral<false>; }, $strip>], "success">; }; list: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; adapterName: ZodOptional<ZodString>; toolsetName: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ tools: ZodArray<ZodObject<{ annotations: ZodOptional<ZodObject<…, …>>; description: ZodString; inputSchema: ZodOptional<ZodRecord<…, …>>; name: ZodString; toolsetName: ZodString; }, $strip>>; toolsets: ZodArray<ZodObject<{ configSchema: ZodOptional<ZodRecord<…, …>>; description: ZodString; name: ZodString; toolCount: ZodNumber; version: ZodString; }, $strip>>; }, $strip>; }; registered: ZodObject<{ toolNames: ZodArray<ZodString>; toolsetName: ZodString; toolsetVersion: ZodString; }, $strip>; registryChanged: ZodObject<{ reason: ZodEnum<{ plugin-loaded: "plugin-loaded"; plugin-unloaded: "plugin-unloaded"; toolset-registered: "toolset-registered"; toolset-unregistered: "toolset-unregistered"; }>; revision: ZodNumber; toolsetName: ZodString; }, $strip>; started: ZodObject<{ executionId: ZodString; timestamp: ZodNumber; toolName: ZodString; toolsetName: ZodString; }, $strip>; }>, { adapterId: never; adapterName: never; contextOverrides: never; durationMs: number; error: { code: string; details?: unknown; message: string; }; executionId: string; input: unknown; reason: "toolset-registered" | "toolset-unregistered" | "plugin-loaded" | "plugin-unloaded"; revision: number; timestamp: number; toolName: string; toolNames: string[]; toolsetName: string; toolsetVersion: string; }, { completed: ZodObject<{ durationMs: ZodNumber; executionId: ZodString; timestamp: ZodNumber; toolName: ZodString; toolsetName: ZodString; }, $strip>; error: ZodObject<{ error: ZodObject<{ code: ZodString; details: ZodOptional<ZodUnknown>; message: ZodString; }, $strip>; executionId: ZodString; timestamp: ZodNumber; toolName: ZodString; toolsetName: ZodString; }, $strip>; execute: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; adapterName: ZodOptional<ZodString>; contextOverrides: ZodOptional<ZodObject<{ adapterId: ZodOptional<ZodString>; adapterName: ZodOptional<ZodString>; agentId: ZodOptional<ZodString>; constraints: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; cwd: ZodOptional<ZodString>; env: ZodOptional<ZodRecord<ZodString, ZodString>>; reasoning: ZodOptional<ZodString>; sessionId: ZodOptional<ZodString>; toolCallId: ZodOptional<ZodString>; turnContext: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; turnId: ZodOptional<ZodString>; }, $strip>>; input: ZodUnknown; toolName: ZodString; }, $strip>; response: ZodDiscriminatedUnion<[ZodObject<{ data: ZodUnknown; success: ZodLiteral<true>; }, $strip>, ZodObject<{ error: ZodObject<{ code: ZodString; details: ZodOptional<ZodUnknown>; message: ZodString; }, $strip>; success: ZodLiteral<false>; }, $strip>], "success">; }; list: { request: ZodObject<{ adapterId: ZodOptional<ZodString>; adapterName: ZodOptional<ZodString>; toolsetName: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ tools: ZodArray<ZodObject<{ annotations: ZodOptional<ZodObject<{ destructive: …; idempotent: …; readOnly: …; requiresApproval: …; }, $strip>>; description: ZodString; inputSchema: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; name: ZodString; toolsetName: ZodString; }, $strip>>; toolsets: ZodArray<ZodObject<{ configSchema: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; description: ZodString; name: ZodString; toolCount: ZodNumber; version: ZodString; }, $strip>>; }, $strip>; }; registered: ZodObject<{ toolNames: ZodArray<ZodString>; toolsetName: ZodString; toolsetVersion: ZodString; }, $strip>; registryChanged: ZodObject<{ reason: ZodEnum<{ plugin-loaded: "plugin-loaded"; plugin-unloaded: "plugin-unloaded"; toolset-registered: "toolset-registered"; toolset-unregistered: "toolset-unregistered"; }>; revision: ZodNumber; toolsetName: ZodString; }, $strip>; started: ZodObject<{ executionId: ZodString; timestamp: ZodNumber; toolName: ZodString; toolsetName: ZodString; }, $strip>; }>

Defined in: ../../../packages/contracts/src/tool/namespace.ts:4