SDK reference · Assistants and evaluation
client.events
client.events.{ submit }Submit something that happened in your product; subscribed assistants act on it.
submit
submit(input: AssistantEvent, key: string): Promise<Submission>Submits an event.
Parameters
keystring- An idempotency key. Retrying with the same key and input returns the first result instead of acting twice.
Returns Promise<Submission>