bobbai00 commented on code in PR #9603:
URL: https://github.com/apache/texera/pull/9603#discussion_r4677999853
##########
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:
Thanks! I'd keep 25. 13 is the longest turn we measured, so it leaves no
headroom: a request just a bit bigger would be cut off, and the user would have
to send another message to continue. 25 still cuts a looping agent to a quarter
of the old default of 100.
Agreed on the cap: both schemas now refuse a limit above 50 (69179ad01). The
frontend's fallback of 10 only shows before the server answers or when the
settings request fails, so I left it alone.
--
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]