bobbai00 opened a new issue, #5750: URL: https://github.com/apache/texera/issues/5750
### Task Summary Part of #5747 — depends on #5748, #5749. Refactor the agent-tool layer and simplify server wiring, with added test coverage. **Scope** - Extract shared tool helpers into `src/agent/tools/tools-utility.ts`. - Slim `result-formatting.ts` and `workflow-execution-tools.ts` (move shared logic to the utility; ~270 net lines removed). - Tidy `texera-agent.ts`, `agent/util/*` (`context-utils`, `workflow-system-metadata`, `workflow-utils`), and `workflow-state.ts`. - Simplify `server.ts` / `index.ts` wiring and startup-banner logging. - Add tests: `texera-agent.test.ts`, `tools/workflow-execution-tools.test.ts`, `result-formatting.test.ts`, and `server.test.ts` coverage. **Why** Removes duplication across the tool modules and tightens the server bootstrap, finishing the reorganization started in #5748 / #5749. **Acceptance** - `agent-service` builds; new/updated tests pass. - No runtime behavior change. ### Task Type - [x] Refactor / Cleanup - [x] Testing / QA -- 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]
