Resource: LabsExperiment
The LabsExperiment resource, contains the metadata of an experiment.
| JSON representation |
|---|
{ "name": string, "description": string, "category": enum ( |
| Fields | |
|---|---|
name |
Identifier. The unique name of the Experiment. |
description |
Output only. The description of the Experiment. |
category |
Output only. The category of the experiment. (e.g. Detections, Search) |
createTime |
Output only. The time the experiment was created, also used as a Release Date. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The time the experiment was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
expiryTime |
Output only. The time the experiment expires, UI representation only. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
metadata |
Output only. Metadata for the experiment, such as image. |
timeout |
Output only. Timeout for the entire experiment execution A duration in seconds with up to nine fractional digits, ending with ' |
uiSchema |
Output only. The UI schema of the experiment defining the experiment page. This is used when type is STANDARD. |
enabled |
Optional. Whether the experiment is enabled. |
type |
Output only. The type of the experiment. This determines which configuration (e.g., uiSchema or agenticConfig) is relevant. |
agenticConfig |
Output only. Configuration for Agentic experiments. This is used when type is |
Category
The category in the product the experiment is in. e.g. "Detections", "Search", "Response", "Data Management"
| Enums | |
|---|---|
CATEGORY_UNSPECIFIED |
The category is unspecified. |
DETECTIONS |
Detection category. |
SEARCH |
Search category. |
RESPONSE |
Response category. |
DATA_MANAGEMENT |
Data Management category. |
ExperimentType
Defines the execution mode of the experiment. No new types are expected to be added to this enum.
| Enums | |
|---|---|
EXPERIMENT_TYPE_UNSPECIFIED |
Type unspecified. |
STANDARD |
The traditional multi-stage flow (Form/Chat stages) driven by uiSchema. |
AGENTIC |
The ADK-based, single-session flow driven by agenticConfig. |
AgenticConfig
Configuration for an Agentic Experiment.
| JSON representation |
|---|
{ "agentId": string, "welcomeMessage": string, "initialPrompt": string } |
| Fields | |
|---|---|
agentId |
Output only. The ID of the Agent in the Agent Hub (for routing) |
welcomeMessage |
Output only. A simple text message shown immediately to the user upon opening the experiment. |
initialPrompt |
Output only. A prompt sent to the agent automatically when the session starts. |
Methods |
|
|---|---|
|
Executes a LabsExperiment. |
|
Gets a LabExperiment. |
|
Lists LabsExperiments. |
|
Update a LabsExperiment. |