Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Penampung V2 menawarkan peningkatan signifikan dari penampung awal dan akan terus memiliki fitur dan perubahan terbaru. Untuk memastikan saran yang paling efektif dan alat utama selalu dapat diakses oleh agen, versi 2 menggunakan tampilan reaktif dengan panel dinamis dan feed saran terpadu.
Penggunaan
Impor modul di halaman HTML Anda dengan kode berikut:
Tidak seperti V1, Anda harus menginisialisasi konektor modul UI secara terpisah di V2. Dengan memisahkan konektor dari penampung, fleksibilitas integrasi akan lebih besar. Untuk penyiapan, lihat Konektor modul UI. Banyak properti di penampung V1 hanya berlaku untuk konektor modul UI.
Properti
Berikut adalah properti penampung V2:
Nama properti
Jenis
Komentar
yang didukung
string
Daftar kunci fitur saran Agent Assist yang dipisahkan koma untuk dirender. Daftar yang didukung: CONVERSATION_SUMMARIZATION, SMART_REPLY, KNOWLEDGE_SEARCH, Proactive generative knowledge assist.
session-id
string
ID sesi opsional untuk penggunaan yang tidak berbasis percakapan, seperti dengan Bantuan pengetahuan generatif.
show-header
BooleanString
Apakah akan menampilkan header branding Agent Assist.
show-dark-mode-toggle
BooleanString
Apakah akan mendukung tampilan tombol untuk mode gelap versus mode terang.
namespace
string
Tidak direkomendasikan, tetapi tersedia jika beberapa instance modul UI diperlukan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-10 UTC."],[],[],null,["The container V2 offers significant improvements from the initial container and will continue to have the most up-to-date features and changes. To ensure the most impactful suggestions and key tools are always accessible to the agent, version 2 uses a reactive display with dynamic panels and a unified feed of suggestions.\n\nUsage\n\nImport the module in your HTML page with the following code: \n\n \u003cscript src=\"https://www.gstatic.com/agent-assist-ui-modules/v2/container.js\"\u003e\u003c/script\u003e\n\nEmbed the module with the following tag: \n\n \u003cagent-assist-ui-modules-v2\u003e\n\nUI module connector\n\nUnlike V1, you must initialize the UI module connector separately in V2. Decoupling the connector from the container allows for greater integration flexibility. For the set up, refer to [UI modules connector](/agent-assist/docs/ui-modules#implement_the_ui_module_connector). Many of the properties on the V1 container apply only to the UI module connector.\n\nProperties\n\nFollowing are the V2 container properties:\n\n| Property name | Type | Comment |\n|-----------------------|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| features | string | Comma-separated list of Agent Assist suggestion feature keys to render. Supported list: `CONVERSATION_SUMMARIZATION`, `SMART_REPLY`, `KNOWLEDGE_SEARCH`, `Proactive generative knowledge assist`. |\n| session-id | string | Optional session ID for use that is not conversation based, like with Generative knowledge assist. |\n| show-header | BooleanString | Whether to show the Agent Assist branding header. |\n| show-dark-mode-toggle | BooleanString | Whether to support showing the toggle for dark mode versus light mode. |\n| namespace | string | Not recommended, but available if multiple instances of [UI modules](/agent-assist/docs/custom-events#initialize_multiple_ui_modules_instances_with_namespace) are required. |"]]