Optional
config: ClientConfigProtected
apiProtected
asyncProtected
defaultProtected
Optional
onProtected
timeoutCreate a new assistant.
Payload for creating an assistant.
The created assistant.
Delete an assistant.
ID of the assistant.
Protected
fetchOptional
options: RequestInit & {Get an assistant by ID.
The ID of the assistant.
Assistant
Get the JSON representation of the graph assigned to a runnable
The ID of the assistant.
Optional
options: { xray?: number | boolean }Optional
xray?: 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.
Graph schema
Get the schemas of an assistant by ID.
The ID of the assistant to get the schema of.
Optional
options: { namespace?: string; recurse?: boolean }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.
Optional
payload: { limit?: number; metadata?: Metadata; offset?: number }List of assistant versions.
Protected
prepareOptional
options: RequestInit & {Change the version of an assistant.
ID of the assistant.
The version to change to.
The updated assistant.
Count assistants matching filters.