local-agent
Version:
A CLI agentic system for orchestrating tools and memory with per-folder scoping
27 lines • 1.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeysJsonSchema = exports.ToolsJsonSchema = exports.McpServerDefinitionSchema = exports.GenerateTextParamsSchema = void 0;
/**
* @fileoverview
* TypeScript interfaces and schemas for agent configuration, tool definitions, and API keys.
* These types are used for validating and structuring configuration files and runtime parameters.
*/
const zod_1 = require("zod");
exports.GenerateTextParamsSchema = zod_1.z.object({
name: zod_1.z.string().optional(),
model: zod_1.z.any(),
tools: zod_1.z.any().optional(),
toolChoice: zod_1.z.string().optional(),
temperature: zod_1.z.number().optional(),
system: zod_1.z.string().optional(),
prompt: zod_1.z.string(),
});
exports.McpServerDefinitionSchema = zod_1.z.object({
command: zod_1.z.string(),
args: zod_1.z.array(zod_1.z.string()),
});
exports.ToolsJsonSchema = zod_1.z.object({
mcpServers: zod_1.z.record(exports.McpServerDefinitionSchema),
});
exports.KeysJsonSchema = zod_1.z.record(zod_1.z.string());
//# sourceMappingURL=types.js.map