SDK reference · Assistants and evaluation
client.triggers
client.triggers.{ create, disable }A trigger starts an assistant on a schedule or when an event matches.
create
create(input: AssistantTrigger, key: string): Promise<Resource>Creates a trigger.
Parameters
keystring- An idempotency key. Retrying with the same key and input returns the first result instead of acting twice.
Returns Promise<Resource>
disable
disable(id: string, key: string): Promise<Resource>Stops a trigger.
Parameters
keystring- An idempotency key. Retrying with the same key and input returns the first result instead of acting twice.
Returns Promise<Resource>