Table of Contents

Class CreateTriggerRequest

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Request body of POST /triggers.

public sealed class CreateTriggerRequest
Inheritance
CreateTriggerRequest
Inherited Members
Extension Methods

Properties

DisplayName

The display name.

[JsonPropertyName("display_name")]
public string? DisplayName { get; set; }

Property Value

string

EnvironmentId

The environment the runs use.

[JsonPropertyName("environment_id")]
public string? EnvironmentId { get; set; }

Property Value

string

ExecutionTimeoutSeconds

The timeout of each run, in seconds.

[JsonPropertyName("execution_timeout_seconds")]
public int? ExecutionTimeoutSeconds { get; set; }

Property Value

int?

ExtensionData

Additional body fields to send (for API features this SDK does not model yet).

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>

Interaction

Required. The agent interaction to create on each run (set Agent).

[JsonPropertyName("interaction")]
public CreateInteractionRequest? Interaction { get; set; }

Property Value

CreateInteractionRequest

MaxConsecutiveFailures

The number of consecutive failures after which the trigger is put in the error state.

[JsonPropertyName("max_consecutive_failures")]
public int? MaxConsecutiveFailures { get; set; }

Property Value

int?

Schedule

Required. The cron schedule.

[JsonPropertyName("schedule")]
public string? Schedule { get; set; }

Property Value

string

TimeZone

Required. The IANA time zone of the schedule.

[JsonPropertyName("time_zone")]
public string? TimeZone { get; set; }

Property Value

string