agentscope-ai / agentscope-ai/agentscope-java

[Feature]: Add Kotlin coroutine extension layer (suspend / Flow APIs)

オープン
#362 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
area/ext/integration enhancement
主要言語
Java
スター
5.6k
フォーク
1.3k
平均マージ
4日 12時間
マージ済み PR(30日)
77

説明

Background

agentscope-java exposes many async APIs based on Reactor (Mono / Flux).
This works well for Java, but is not idiomatic for Kotlin, where suspend functions and Flow are the standard async model.

Proposal

Add a Kotlin coroutine extension module, e.g.:

agentscope-kotlin

This module would not change the core implementation, but provide Kotlin-friendly APIs on top of the existing Reactor-based core.

Goal

At the API level, convert:

Mono → suspend fun

Flux → Flow

So Kotlin users rarely need to interact with Reactor types directly.

Example
suspend fun Agent.send(request: Request): Response
fun Agent.streamEvents(): Flow

Internally backed by Mono.awaitSingle() and Flux.asFlow().

Summary

Keep Reactor as the core async implementation

Add a Kotlin coroutine extension layer

Improve Kotlin developer experience without impacting Java users

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。