dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
11 lines • 520 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.attachAgentRoute = void 0;
const attachAgentRoute = ({ httpClient }) => ({ parent_agent_uuid, child_agent_uuid, route }) => {
const url = `/gen-ai/agents/${parent_agent_uuid}/child_agents/${child_agent_uuid}`;
const body = Object.assign({ parent_agent_uuid,
child_agent_uuid }, route);
return httpClient.post(url, body);
};
exports.attachAgentRoute = attachAgentRoute;
//# sourceMappingURL=attach-agent-route.js.map