gupta-sahil01 commented on code in PR #6436:
URL: https://github.com/apache/texera/pull/6436#discussion_r4596292674


##########
agent-service/src/server.ts:
##########
@@ -388,6 +390,45 @@ const agentsRouter = new Elysia({ prefix: "/agents" })
     }
   );
 
+// Stateless ambient operator recommender (apache/texera#5240). Given the
+// operator a user just added, returns a short ranked list of likely next
+// operators for the canvas to render as suggestions. Version 1 uses a
+// hardcoded rule table with no LLM call, so it needs no user token and no

Review Comment:
   Done in 1a2fd8231. I pulled agent creation's token check into a shared 
`requireUserToken` helper, and both routes use it, so missing, malformed, or 
expired tokens get the same 401 responses. V2 can forward the token to the LLM 
gateway without changing the auth contract.
   



-- 
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