sshiv012 commented on code in PR #9603:
URL: https://github.com/apache/texera/pull/9603#discussion_r4661813598


##########
agent-service/src/types/agent.ts:
##########
@@ -85,7 +85,10 @@ export const DEFAULT_AGENT_SETTINGS: Omit<AgentSettings, 
"systemPrompt"> = {
   operatorResultSerializationMode: OperatorResultSerializationMode.TSV,
   toolTimeoutMs: 240000,
   executionTimeoutMs: 240000,
-  maxSteps: 100,
+  // Model calls allowed per user message. Real turns take about 3 and the 
largest measured took
+  // 13, while a looping agent stops only at this limit, so it stays close to 
real use and inside
+  // the 1-50 range the settings dialog offers.
+  maxSteps: 25,

Review Comment:
   LGTM. Two small things, fine as follow-ups as well under 
https://github.com/apache/texera/issues/9576: (1) when a turn hits the limit it 
ends silently, so the user doesn't know why the agent stopped
   (2) the frontend still falls back to maxSteps: 10 and the server accepts any 
value above 1, so maybe add maximum: 50 to the create and update schemas to 
match the dialog.
   (3) do you think 25 is a good default value? Can't we do just 13 as 
commented? We could limit the spend to half by doing this, if for some reason 
agent goes into the doom loop



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to