braiin
Version:
Behavioral Reasoning AI for Intelligent Navigation
12 lines (11 loc) • 355 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findTool = exports.createAgent = void 0;
const createAgent = (name, description, tools) => ({
name,
description,
tools
});
exports.createAgent = createAgent;
const findTool = (agent, tag) => agent.tools.find(t => t.tag === tag);
exports.findTool = findTool;