Skip to content

AgentsOperations

The agents.* operations.

list(input?, options?): Promise<Agents>;

List agents.

Parameter Type Description
input? { agents?: string[]; after?: string; limit?: number; } -
input.agents? string[] Agent IDs, each listed once. Each includes its conversations. Defaults to every agent you can access.
input.after? string Return results after this cursor. Use the next value from the previous page.
input.limit? number The maximum number to return. Defaults to all.
options? CallOptions -

Promise<Agents>


forget(input?, options?): Promise<Forgotten>;

Delete agents.

Removes each agent in the same way as agent.forget. The agent is stopped, and its conversations, definition and triggers are deleted.

Parameter Type Description
input? { agents?: string[]; } -
input.agents? string[] Agent IDs, each listed once. Each includes its conversations. Defaults to every agent you can access.
options? CallOptions -

Promise<Forgotten>


cancel(input?, options?): Promise<string[]>;

Cancel the current turn of several agents.

Parameter Type Description
input? { agents?: string[]; } -
input.agents? string[] Agent IDs, each listed once. Each includes its conversations. Defaults to every agent you can access.
options? CallOptions -

Promise<string[]>