Preparing search index...
The search index is not available
@google/genai
@google/genai
gaos/funcs/triggers-create
triggersCreate
Function triggersCreate
triggersCreate
(
client
:
GoogleGenAICore
,
body
:
TriggerCreateParams
,
api_version
?:
string
,
options
?:
RequestOptions
,
)
:
APIPromise
<
Result
<
Trigger
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
,
>
,
>
Creates a new trigger that will invoke the specified agent on the given cron schedule.
Parameters
client
:
GoogleGenAICore
body
:
TriggerCreateParams
Optional
api_version
:
string
Optional
options
:
RequestOptions
Returns
APIPromise
<
Result
<
Trigger
,
|
UnexpectedClientError
|
InvalidRequestError
|
RequestAbortedError
|
RequestTimeoutError
|
ConnectionError
|
GoogleGenAiError
,
>
,
>
Settings
Theme
OS
Light
Dark
@google/genai
Loading...
Creates a new trigger that will invoke the specified agent on the given cron schedule.