ContentKt


public final class ContentKt


概要

パブリック メソッド

static final @NonNull Content
content(
    @Content.Role int role,
    @ExtensionFunctionType @NonNull Function1<@NonNull Content.BuilderUnit> init
)

DSL のような方法で送受信されるコンテンツを構築する関数。

パブリック メソッド

content

public static final @NonNull Content content(
    @Content.Role int role,
    @ExtensionFunctionType @NonNull Function1<@NonNull Content.BuilderUnit> init
)

DSL のような方法で送受信されるコンテンツを構築する関数。

テキスト、画像、バイナリ パートのコレクションが含まれています。

使用例:

content(Role.MODEL) {
text("Example string")
)