Ma77Ball opened a new pull request, #5995:
URL: https://github.com/apache/texera/pull/5995

   ### What changes were proposed in this PR?
   - Added a private `mapApiAgentInfo(api)` helper in `AgentService` and routed 
`createAgent`, `getAgent`, and `getAllAgents` through it, removing three 
identical inline `ApiAgentInfo -> AgentInfo` mappings (including the duplicated 
`delegate` sub-mapping).
   - Added a private `convertApiReActSteps(steps)` helper and routed the three 
`steps.map(s => convertApiReActStep(s))` sites through it.
   - No behavior change: the produced `AgentInfo` and `ReActStep[]` values are 
identical to before.
   ### Any related issues, documentation, discussions?
   Closes: #5990
   ### How was this PR tested?
   - Run `cd frontend && yarn test --include='**/agent.service.spec.ts'`, 
expect the existing `AgentService` suite (including the `createAgent` cases 
that flush an API payload and assert the mapped `AgentInfo`) to pass.
   - Typecheck with `cd frontend && npx tsc --noEmit -p tsconfig.json`, expect 
no errors in `agent.service.ts` (the only error is a pre-existing unrelated 
missing-module in `migration-llm.ts`).
   ### Was this PR authored or co-authored using generative AI tooling?
   Co-authored with Claude Opus 4.8 in compliance with ASF
   


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