Yicong-Huang opened a new pull request, #4698:
URL: https://github.com/apache/texera/pull/4698

   ### What changes were proposed in this PR?
   
   Adds `tools-utility.test.ts` covering the formatting helpers in 
`agent-service/src/agent/tools/tools-utility.ts`:
   
   - `createToolResult` — passthrough behavior for non-empty and empty messages
   - `createErrorResult` — `[ERROR] ` prefix preservation, including 
empty-error case
   - `formatExecuteOperatorResult` and `formatOperatorError` — id/error 
interpolation including empty-error edge
   - `formatAddOperatorResult` — summary-only baseline, optional `createdLinks` 
/ `deletedLinks` branches independently and together (pinning the 
deleted-before-created ordering and the comma-joined multi-link format), and 
the empty-array short-circuit
   - `formatModifyOperatorResult` — same matrix without the port-count summary
   
   Private helper `formatLinkDescription` is exercised through the two 
`format*OperatorResult` paths rather than tested directly.
   
   ### Any related issues, documentation, discussions?
   
   Closes #4697.
   
   ### How was this PR tested?
   
   ```
   cd agent-service
   bun install --frozen-lockfile
   bun test src/agent/tools/tools-utility.test.ts   # 18 pass / 0 fail
   bun test                                         # 52 pass / 0 fail
   bun run typecheck
   bun run format:check
   ```
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (claude-opus-4-7)


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