Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::Evaluation::Scenario.
The config for a scenario
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#evaluation_expectations
def evaluation_expectations() -> ::Array<::String>-
(::Array<::String>) — Optional. The evaluation expectations to evaluate the conversation
produced by the simulation against. Format:
projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}
#evaluation_expectations=
def evaluation_expectations=(value) -> ::Array<::String>-
value (::Array<::String>) — Optional. The evaluation expectations to evaluate the conversation
produced by the simulation against. Format:
projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}
-
(::Array<::String>) — Optional. The evaluation expectations to evaluate the conversation
produced by the simulation against. Format:
projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation}
#max_turns
def max_turns() -> ::Integer- (::Integer) — Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
#max_turns=
def max_turns=(value) -> ::Integer- value (::Integer) — Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
- (::Integer) — Optional. The maximum number of turns to simulate. If not specified, the simulation will continue until the task is complete.
#rubrics
def rubrics() -> ::Array<::String>- (::Array<::String>) — Required. The rubrics to score the scenario against.
#rubrics=
def rubrics=(value) -> ::Array<::String>- value (::Array<::String>) — Required. The rubrics to score the scenario against.
- (::Array<::String>) — Required. The rubrics to score the scenario against.
#scenario_expectations
def scenario_expectations() -> ::Array<::Google::Cloud::Ces::V1beta::Evaluation::ScenarioExpectation>- (::Array<::Google::Cloud::Ces::V1beta::Evaluation::ScenarioExpectation>) — Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
#scenario_expectations=
def scenario_expectations=(value) -> ::Array<::Google::Cloud::Ces::V1beta::Evaluation::ScenarioExpectation>- value (::Array<::Google::Cloud::Ces::V1beta::Evaluation::ScenarioExpectation>) — Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
- (::Array<::Google::Cloud::Ces::V1beta::Evaluation::ScenarioExpectation>) — Required. The ScenarioExpectations to evaluate the conversation produced by the user simulation.
#task
def task() -> ::String- (::String) — Required. The task to be targeted by the scenario.
#task=
def task=(value) -> ::String- value (::String) — Required. The task to be targeted by the scenario.
- (::String) — Required. The task to be targeted by the scenario.
#task_completion_behavior
def task_completion_behavior() -> ::Google::Cloud::Ces::V1beta::Evaluation::Scenario::TaskCompletionBehavior- (::Google::Cloud::Ces::V1beta::Evaluation::Scenario::TaskCompletionBehavior) — Optional. Deprecated. Use user_goal_behavior instead.
#task_completion_behavior=
def task_completion_behavior=(value) -> ::Google::Cloud::Ces::V1beta::Evaluation::Scenario::TaskCompletionBehavior- value (::Google::Cloud::Ces::V1beta::Evaluation::Scenario::TaskCompletionBehavior) — Optional. Deprecated. Use user_goal_behavior instead.
- (::Google::Cloud::Ces::V1beta::Evaluation::Scenario::TaskCompletionBehavior) — Optional. Deprecated. Use user_goal_behavior instead.
#user_facts
def user_facts() -> ::Array<::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserFact>- (::Array<::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserFact>) — Optional. The user facts to be used by the scenario.
#user_facts=
def user_facts=(value) -> ::Array<::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserFact>- value (::Array<::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserFact>) — Optional. The user facts to be used by the scenario.
- (::Array<::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserFact>) — Optional. The user facts to be used by the scenario.
#user_goal_behavior
def user_goal_behavior() -> ::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserGoalBehavior- (::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserGoalBehavior) — Optional. The expected behavior of the user goal.
#user_goal_behavior=
def user_goal_behavior=(value) -> ::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserGoalBehavior- value (::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserGoalBehavior) — Optional. The expected behavior of the user goal.
- (::Google::Cloud::Ces::V1beta::Evaluation::Scenario::UserGoalBehavior) — Optional. The expected behavior of the user goal.
#variable_overrides
def variable_overrides() -> ::Google::Protobuf::Struct-
(::Google::Protobuf::Struct) — Optional. Variables / Session Parameters as context for the session,
keyed by variable names. Members of this struct will override any default
values set by the system.
Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.
#variable_overrides=
def variable_overrides=(value) -> ::Google::Protobuf::Struct-
value (::Google::Protobuf::Struct) — Optional. Variables / Session Parameters as context for the session,
keyed by variable names. Members of this struct will override any default
values set by the system.
Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.
-
(::Google::Protobuf::Struct) — Optional. Variables / Session Parameters as context for the session,
keyed by variable names. Members of this struct will override any default
values set by the system.
Note, these are different from user facts, which are facts known to the user. Variables are parameters known to the agent: i.e. MDN (phone number) passed by the telephony system.