We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f602053 commit 3529898Copy full SHA for 3529898
app/src/lib/discord/prompt-agent.ts
@@ -9,6 +9,7 @@ import { z } from "zod";
9
10
const DISCORD_AGENT_MODEL = "anthropic/claude-sonnet-4.6";
11
const MAX_CONTEXT_MESSAGE_LENGTH = 500;
12
+const DISCORD_AGENT_MAX_STEPS = 20;
13
14
type RecentDiscordMessage = {
15
author: string;
@@ -222,6 +223,7 @@ export async function runDiscordPromptAgent(input: {
222
223
const { text } = await generateText({
224
model: getGatewayModel(),
225
tools: buildTools(),
226
+ maxSteps: DISCORD_AGENT_MAX_STEPS,
227
system: `You are the AllThingsWeb Discord ops assistant.
228
You can inspect and update AllThingsWeb event data and fetch Luma event payloads.
229
Use tools whenever the answer depends on current data.
0 commit comments