Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod => Next #3

Merged
merged 11 commits into from
Jan 29, 2025
Prev Previous commit
Next Next commit
agent has to be a variable
neuroscr committed Jan 29, 2025
commit 9ab40e5fda23f4011c9516f4c819efbb5b069c12
4 changes: 2 additions & 2 deletions packages/client-direct/src/api.ts
Original file line number Diff line number Diff line change
@@ -178,15 +178,15 @@ export function createApiRouter(
}

// start it up (and register it)
agent = await directClient.startAgent(character);
const agent = await directClient.startAgent(character);
elizaLogger.log(`${character.name} started`);

res.json({
id: character.id,
character: character,
});
});

router.get("/agents/:agentId/channels", async (req, res) => {
const { agentId } = validateUUIDParams(req.params, res) ?? {
agentId: null,