試験Agentforce-Specialist-JPN トピック3 問題305 スレッド
Salesforce Agentforce-Specialist-JPNのリアル試験問題集
問題 #: 305
トピック #: 3
問題 #: 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
コメント
他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。
コメントを通報する
コメント中
今すぐ 新規登録 / ログイン (無料です)。