試験Agentforce-Specialist-JPN トピック3 問題305 スレッド

Salesforce Agentforce-Specialist-JPNのリアル試験問題集
問題 #: 305
トピック #: 3
Universal Containers は、顧客が購入履歴を追跡できるように、Agentforce サービス エージェントを構築しています。会話中に顧客の注文番号を保存するために、Agentforce スペシャリストは、エージェント スクリプトで order_id: string = " " という宣言を使用して変数を作成し、初期化します。この宣言では、mutable キーワードは省略されています。テスト中、エージェントは @utils.setVariables ユーティリティを使用して、この変数をユーザーの注文番号で更新しようとします。
この変数宣言は実行時にどのような結果をもたらしますか?

おすすめの解答:C 解答を投票する

The correct answer is C because Agent Script variables are read-only unless they are explicitly declared with the mutable keyword. A regular variable without mutable can be referenced, but the agent cannot change its value during the conversation. That is exactly why order_id: string = " " is not suitable for capturing the customer's order number during runtime. To store information gathered from the user, the variable must be declared as a mutable string, such as order_id: mutable string = " " . Option A is wrong because mutability is not the default. Option B is wrong because the declaration itself is valid syntax; it simply creates a nonmutable variable. The runtime failure occurs when the agent or utility attempts to update it.

Matsuzaka 2026-06-23 01:01:10

コメント

正解:
?」こちらは投票コメントになっております。普通のコメントに切り替えます。
ニックネーム: 送信 キャンセル
投票コメントをあげるごとに、選択した解答の投票数を1つ増やすことができます。

他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡