Skip to content

refactor(client): expose standalone task execution API - #61

Merged
Zhoujie628 merged 3 commits into
project-openan:mainfrom
Zhoujie628:main
Sep 12, 2026
Merged

Zhoujie628 merged 3 commits into
project-openan:mainfrom
Zhoujie628:main

Conversation

@Zhoujie628

Copy link
Copy Markdown
Contributor

Closes #60

Summary

  • move standalone task execution from ExtensionSender to WorkflowEngineClient.sendTask
  • reuse task waiting, negotiation, authentication, custom runtime, and non-final task cleanup
  • keep workflow dispatch private and remove the unused high-level sendMessage alias
  • preserve the original workflow task context when the DAG enters Negotiation-T
  • update samples, tests, changelog, and aligned English/Chinese documentation

Verification

  • mvn -B clean verify on main: 332 tests passed
  • mvn -B clean verify on dev: 408 tests passed, including direct and Order simulator E2E
  • public API inspection confirms neither dispatch nor high-level sendMessage is exposed
  • git diff --check passed

Live external-system E2E was not run in this change.

sendTask(agentName, content) dispatches a single task without a workflow:
the host supplies final content (structured Task-T prompt or plain text),
the engine envelopes, authenticates, sends and returns the complete
SendMessageResult. No ControlPoint is invoked and no negotiation is
attempted -- INPUT_REQUIRED is returned to the caller as-is. Each call
uses a fresh context independent of any workflow session, matching
sendAuthorization's isolation model.

This lets hosts mix workflow orchestration with direct single-agent calls
using the same transport, credentials and protocol logging.

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
@Zhoujie628
Zhoujie628 requested a review from a team as a code owner September 12, 2026 02:39
@Zhoujie628
Zhoujie628 merged commit 6db0927 into project-openan:main Sep 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: expose standalone task execution through workflow client

1 participant