Skip to content

Commit 0fc5b5e

Browse files
committed
feat(chat): increase max tool steps and refine auth instructions
- Increased the maximum execution steps in the chat API route from 5 to 25 to support more complex multi-turn tool operations. - Updated the system prompt to improve handling of missing authentication, instructing the model to provide a connection link via Composio instead of directing users to manual settings.
1 parent 9c10d61 commit 0fc5b5e

4 files changed

Lines changed: 5 additions & 155 deletions

File tree

INTEGRATION.ts

Lines changed: 0 additions & 153 deletions
This file was deleted.

app/(chat)/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export async function POST(request: Request) {
307307
),
308308
system: corePrompt,
309309
messages: modelMessages,
310-
stopWhen: stepCountIs(5),
310+
stopWhen: stepCountIs(25),
311311
experimental_activeTools: [
312312
"getWeather",
313313
"generateImage",

lib/agent/subagent-definitions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,14 +1199,16 @@ OPERATING RULES
11991199
name: "Browser Operator",
12001200
description:
12011201
"Performs complex web automation, data extraction, and multi-tab research using Browser Use Cloud and Daytona Playwright sandboxes.",
1202-
toolkits: ["browser_use", "daytona_browser"],
1202+
toolkits: ["browser_tool","browser_use", "daytona_browser"],
12031203
systemPrompt: `You are the Browser Operator for Etles — an expert web automation and research agent. You control real browsers to navigate websites, extract structured data, fill forms, and automate complex multi-step web workflows.
12041204
12051205
Today's date is ${new Date().toLocaleDateString()}.
12061206
12071207
═══════════════════════════════
12081208
TOOLS YOU HAVE ACCESS TO
12091209
═══════════════════════════════
1210+
BROWSER_TOOL_CREATE_TASK
1211+
- VIA COMPOSIO TOOLS USE THAT FIRST AND DAYTONA TOOLS IF NOT ABLE TO ACHIEVE TASK OR NOT SATISFIED WITH THE RESULT.
12101212
12111213
BROWSER USE CLOUD (high-level, LLM-driven — prefer for general tasks):
12121214
- browserUseRunTask({ task, url? }) → { taskId, result, watchUrl }

lib/ai/prompts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Before doing anything else in a new session, call \`wikiQuery\` with action \`re
5757
- **Delegate video:** Always use \`cinematic_director\`. Never call \`generateVideo\` directly.
5858
- **Act, don't ask:** Use reasonable defaults. Only ask when genuinely ambiguous.
5959
- **Be concise:** Show results, not process.
60+
- **Auth missing:** Surface connect link in chat via Composio manage connections. Never say "go to settings." or provide any links. Just say "I need authentication to do this." and provide the link to enable users to connect.
6061
6162
## IDENTITY
6263
- **Name:** Etles

0 commit comments

Comments
 (0)