import { RaijinLabsLucidAiCore } from "raijin-labs-lucid-ai/core.js";
import { agentsLaunchLucidLaunchAgent } from "raijin-labs-lucid-ai/funcs/agentsLaunchLucidLaunchAgent.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 agentsLaunchLucidLaunchAgent(raijinLabsLucidAi, {
mode: "base-runtime",
model: "gpt-4o",
prompt: "You are a helpful trading assistant",
target: "docker",
owner: "7xK9mQ2vNbPfYkRd3JhEzV1LnWqA8tUcGp4SyDfH5Bo",
name: "trading-assistant",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("agentsLaunchLucidLaunchAgent failed:", res.error);
}
}
run();