Skip to content

refactor(agents,prompt)!: uniform Java blocking API — rename, remove executor params#2005

Merged
EugeneTheDev merged 3 commits into
developfrom
eugenethedev/java-blocking
May 15, 2026
Merged

refactor(agents,prompt)!: uniform Java blocking API — rename, remove executor params#2005
EugeneTheDev merged 3 commits into
developfrom
eugenethedev/java-blocking

Conversation

@EugeneTheDev
Copy link
Copy Markdown
Collaborator

@EugeneTheDev EugeneTheDev commented May 14, 2026

Standardise the Java-facing blocking API across all modules so that:

  • Every blocking wrapper follows the naming convention xxxBlocking (Kotlin) / xxx (Java, via @JvmName)
  • Optional ExecutorService/Executor parameters are removed from all blocking wrappers; the agent's own configured dispatcher (strategyDispatcher / llmRequestDispatcher) is used instead
  • Suspend counterparts in commonMain interfaces are annotated @JvmSynthetic to hide them from Java autocompletion

BREAKING:

  • javaNonSuspendRun on AIAgent renamed to runBlocking; @JvmName("run") makes it run from Java
  • javaNonSuspendInitialize / javaNonSuspendOnMessage on FeatureMessageProcessor renamed to initializeBlocking / onMessageBlocking
  • All createAgent*, removeAgent*, agentById blocking overloads on AIAgentService renamed to *Blocking (Java callers see the original names via @JvmName)
  • All blocking overloads on PromptExecutor and LLMClient renamed to executeBlocking, moderateBlocking, etc.
  • ExecutorService/Executor parameter removed from every blocking wrapper listed above
  • SubtaskBuilder.withExecutorService() builder method and executorService property removed
  • NonSuspendAIAgentStrategy renamed to AIAgentStrategyBlocking; abstract method executeStrategy renamed to executeBlocking
  • NonSuspendAIAgentFunctionalStrategy renamed to AIAgentFunctionalStrategyBlocking

@EugeneTheDev EugeneTheDev marked this pull request as draft May 14, 2026 12:00
@EugeneTheDev EugeneTheDev force-pushed the eugenethedev/java-blocking branch from edce123 to 2cfbd91 Compare May 14, 2026 12:12
@EugeneTheDev EugeneTheDev force-pushed the eugenethedev/java-blocking branch from 2cfbd91 to 3af759e Compare May 14, 2026 13:03
@EugeneTheDev EugeneTheDev changed the title streamline concurrency for Java feat!: streamline concurrency for Java May 14, 2026
@EugeneTheDev EugeneTheDev changed the title feat!: streamline concurrency for Java refactor(agents,prompt)!: uniform Java blocking API — rename, remove executor params May 15, 2026
@EugeneTheDev EugeneTheDev marked this pull request as ready for review May 15, 2026 11:37
@EugeneTheDev EugeneTheDev merged commit 79ad672 into develop May 15, 2026
24 checks passed
@EugeneTheDev EugeneTheDev deleted the eugenethedev/java-blocking branch May 15, 2026 11:38
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.

2 participants