trickroom / Docs
Sign in

SDK reference · Assistants and evaluation

client.assistants

client.assistants.{ list, create, versions, version, deploy }

An assistant answers in conversations. Each change is a new version; deploying one makes it live.

list

list(): Promise<Page>

The application's assistants.

Returns Promise<Page>

create

create(input: AssistantCreate, key: string): Promise<Resource>

Creates an assistant.

Parameters

keystring
An idempotency key. Retrying with the same key and input returns the first result instead of acting twice.

Returns Promise<Resource>

versions

versions(id: string): Promise<Page>

An assistant's versions.

Returns Promise<Page>

version

version(id: string, input: AssistantVersion, key: string): Promise<Resource>

Saves a new version.

Parameters

keystring
An idempotency key. Retrying with the same key and input returns the first result instead of acting twice.

Returns Promise<Resource>

deploy

deploy(id: string, versionId: string, key: string): Promise<Resource>

Makes a version live.

Parameters

keystring
An idempotency key. Retrying with the same key and input returns the first result instead of acting twice.

Returns Promise<Resource>