Skip to content

perf(samples): pre-position agents in parallel - #84

Merged
Zhoujie628 merged 2 commits into
project-openan:mainfrom
Zhoujie628:main
Sep 17, 2026
Merged

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

Conversation

@Zhoujie628

Copy link
Copy Markdown
Contributor

Pre-positioning ran each agent Authorization-T + Notification-T sequence serially; every step is LLM-bound (prompt generation plus agent-side validation, with retries), so startup spent ~169s on sequential model calls.

Run each agent sequence on its own worker (bounded at 4 concurrent). Agents are independent: separate transports/channels per operation and separate remote tasks - the workflow executor already exercises concurrent sends over one transport. Failure semantics unchanged: per-agent failures are counted and skipped, and the subscription handle is still transferred to the lifecycle owner before the acknowledgement wait.

Also raise the samples LlmHelper default A2AT_LLM_MAX_TOKENS to 4000 (field logs show qwen3 reasoning content exhausting 2000 tokens, truncating validation output and forcing retries), and suppress accepted legacy demo/vendor-adapter checkstyle items in the shared suppressions file.

Pre-positioning ran each agent's Authorization-T + Notification-T
sequence serially; every step is LLM-bound (prompt generation plus
agent-side validation, with retries), so startup spent ~169s with four
agents-worth of sequential model calls.

Run each agent's sequence on its own worker (bounded at 4 concurrent).
Agents are independent: separate transports/channels per operation,
separate remote tasks, and the workflow executor already exercises
concurrent sends over one transport. Failure semantics are unchanged:
per-agent failures are counted and skipped, never aborting other agents,
and the subscription handle is still transferred to the lifecycle owner
before the acknowledgement wait.

Also raise the samples LlmHelper default A2AT_LLM_MAX_TOKENS to 4000:
field logs show qwen3 reasoning content exhausting 2000 tokens, which
truncated validation output and forced retries.

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
…tems

The gates calibrated on the core modules also cover the samples module:
the demo entry method and the vendor SSE adapter carry cohesive methods
slightly over the length budget, intrinsic wire-compatibility complexity,
and conventional lowercase static-final holders (loggers, mappers, flags).
Suppress per file so new code elsewhere stays gated.

Signed-off-by: Zhoujie628 <zhoujie628@users.noreply.github.com>
@Zhoujie628
Zhoujie628 requested a review from a team as a code owner September 17, 2026 09:20
@Zhoujie628
Zhoujie628 merged commit fb10901 into project-openan:main Sep 17, 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.

1 participant