Optionalconfig: ClientConfigProtectedapiProtectedasyncProtecteddefaultProtected OptionalonProtectedtimeoutCreate a new assistant.
Payload for creating an assistant.
The created assistant.
Delete an assistant.
ID of the assistant.
ProtectedfetchOptionaloptions: 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.
Optionaloptions: { xray?: number | boolean }Optionalxray?: 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.
Optionaloptions: { 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.
Optionalpayload: { limit?: number; metadata?: Metadata; offset?: number }List of assistant versions.
ProtectedprepareOptionaloptions: RequestInit & {Change the version of an assistant.
ID of the assistant.
The version to change to.
The updated assistant.
Count assistants matching filters.