From 6735003d4119d7e57f1355600a95cf432f53e42c Mon Sep 17 00:00:00 2001 From: rarepepi Date: Mon, 2 Dec 2024 15:27:53 -0500 Subject: [PATCH 1/2] non-interactive mode --- Dockerfile | 2 +- agent/src/index.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fd49b926c7..bc12f3df418 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts COPY --from=builder /app/characters ./characters # Set the command to run the application -CMD ["pnpm", "start"] \ No newline at end of file +CMD ["pnpm", "start", "non-interactive"] diff --git a/agent/src/index.ts b/agent/src/index.ts index ab888ec2f28..c2174f2903f 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -485,7 +485,9 @@ const startAgents = async () => { } elizaLogger.log("Chat started. Type 'exit' to quit."); - chat(); + if (!args["non-interactive"]) { + chat(); + } }; startAgents().catch((error) => { From e30a73401af1998056b10ec3fa8e70adefbca596 Mon Sep 17 00:00:00 2001 From: rarepepi Date: Mon, 2 Dec 2024 16:23:19 -0500 Subject: [PATCH 2/2] add flag delimter --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bc12f3df418..a16b33ac0c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts COPY --from=builder /app/characters ./characters # Set the command to run the application -CMD ["pnpm", "start", "non-interactive"] +CMD ["pnpm", "start", "--non-interactive"]