import { RaijinLabsLucidAiCore } from "raijin-labs-lucid-ai/core.js";
import { agentsDeployLucidDeployAgent } from "raijin-labs-lucid-ai/funcs/agentsDeployLucidDeployAgent.js";
// Use `RaijinLabsLucidAiCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const raijinLabsLucidAi = new RaijinLabsLucidAiCore({
bearerAuth: process.env["RAIJINLABSLUCIDAI_BEARER_AUTH"] ?? "",
});
async function run() {
const res = await agentsDeployLucidDeployAgent(raijinLabsLucidAi, {
name: "trading-agent-v2",
owner: "7xK9mQ2vNbPfYkRd3JhEzV1LnWqA8tUcGp4SyDfH5Bo",
descriptor: {
"runtime": "node",
"framework": "langchain",
"tools": [
"web-search",
"calculator",
],
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("agentsDeployLucidDeployAgent failed:", res.error);
}
}
run();