Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

rtk-chat-composer-view

最終更新 Markdown で表示Agent セットアップ

チャットコンポーザーを描画するコンポーネントです。

プロパティ

プロパティ 必須 デフォルト 説明
canSendFiles boolean - ユーザーがファイルメッセージを送信できるかどうか
canSendTextMessage boolean - ユーザーがテキストメッセージを送信できるかどうか
iconPack IconPack1 defaultIconPack アイコンパック
inputTextPlaceholder string - テキスト入力のプレースホルダー
isEditing boolean - コンポーザーを編集モードにします
maxLength number - テキスト入力の最大文字数
message string - 事前に入力するメッセージ
quotedMessage string - 表示する引用メッセージ
rateLimits { period: number; maxInvocations: number; } - レート制限
storageKey string - localStorage にメッセージを保存するキー
t RtkI18n1 useLanguage() 言語

使用例

基本的な使い方

<!-- component.html -->
<rtk-chat-composer-view></rtk-chat-composer-view>

プロパティを指定する場合

<!-- component.html -->
<rtk-chat-composer-view
 [canSendFiles]="true"
 [canSendTextMessage]="true"
 inputTextPlaceholder="example">
</rtk-chat-composer-view>

役に立ちましたか?