Optionalconfig: ClientConfigProtectedapiProtectedasyncProtecteddefaultProtected OptionalonProtectedtimeoutOptionalquery: { graphId?: string; metadata?: Metadata; name?: string; signal?: AbortSignal }OptionalgraphId?: stringOptional graph id to filter by.
Optionalmetadata?: MetadataMetadata to filter by. Exact match for each key/value.
Optionalname?: stringOptional name to filter by.
Optionalsignal?: AbortSignalNumber of assistants matching the criteria.
Create a new assistant.
Payload for creating an assistant.
The created assistant.
Delete an assistant.
ID of the assistant.
Optionaloptions: { signal?: AbortSignal }ProtectedfetchOptionaloptions: RequestInit & {Get an assistant by ID.
The ID of the assistant.
Optionaloptions: { signal?: AbortSignal }Assistant
Get the JSON representation of the graph assigned to a runnable
The ID of the assistant.
Optionaloptions: { signal?: AbortSignal; xray?: number | boolean }Optionalsignal?: AbortSignalOptionalxray?: number | booleanWhether to include subgraphs in the serialized graph representation. If an integer value is provided, only subgraphs with a depth less than or equal to the value will be included.
Serialized graph
Get the state and config schema of the graph assigned to a runnable
The ID of the assistant.
Optionaloptions: { signal?: AbortSignal }Graph schema
Get the schemas of an assistant by ID.
The ID of the assistant to get the schema of.
Optionaloptions: { namespace?: string; recurse?: boolean; signal?: AbortSignal }Additional options for getting subgraphs, such as namespace or recursion extraction.
The subgraphs of the assistant.
List all versions of an assistant.
ID of the assistant.
Optionalpayload: { limit?: number; metadata?: Metadata; offset?: number; signal?: AbortSignal }List of assistant versions.
ProtectedprepareOptionaloptions: RequestInit & {List assistants.
Query options.
List of assistants or, when includePagination is true, a mapping with the assistants and next cursor.
List assistants.
Optionalquery: {Query options.
List of assistants or, when includePagination is true, a mapping with the assistants and next cursor.
Change the version of an assistant.
ID of the assistant.
The version to change to.
Optionaloptions: { signal?: AbortSignal }The updated assistant.
Count assistants matching filters.