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

   ### What changes were proposed in this PR?
   
   Add unit test coverage for `assembleContext` in 
`agent-service/src/agent/util/context-utils.ts` — a pure function (type-only 
imports, no network) that groups `ReActStep`s by task, serializes completed vs 
ongoing tasks into markdown sections, appends a dataflow section, and returns 
`[{ role: "user", content }]`. A `bun test` `.spec.ts` sits next to the source. 
No production-code changes.
   
   ### Any related issues, documentation, discussions?
   
   Closes #6333.
   
   ### How was this PR tested?
   
   ```
   bun test src/agent/util/context-utils.spec.ts
   ```
   
   5 pass. `bun run typecheck` and `bun run format:check` are clean. The spec 
is pure — it builds `ReActStep` / `WorkflowState` / `OperatorPredicate` 
fixtures in-process and covers: empty steps → a single user message with no 
task sections; a completed task under `# Completed Tasks` (`## Task 
(completed)` with the request + turns); an unfinished task under `# Ongoing 
Task`; a `# Current Dataflow` section when the workflow has operators; and 
steps sharing a `messageId` grouped into one task.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


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