Skip to main content
Updates the active provider version for an assistant. Use this after creating a provider with Create assistant provider.
For setup and authentication options, see the Installation guide and Authentication.

Parameters

connectionConfig
ConnectionConfig
required
Configuration for the client connection.
request
UpdateAssistantVersionRequest
required
Provider version to promote.

Usage

import {
  ConnectionConfig,
  UpdateAssistantVersion,
  UpdateAssistantVersionRequest,
} from "@rapidaai/react";

const auth = ConnectionConfig.WithDebugger({
  authorization: "AUTHORIZATION_TOKEN_PLACEHOLDER",
  userId: "AUTH_ID_PLACEHOLDER",
  projectId: "PROJECT_ID_PLACEHOLDER",
});
const connectionCfg = ConnectionConfig.DefaultConnectionConfig(auth);

const request = new UpdateAssistantVersionRequest();
request.setAssistantid("ASSISTANT_ID_PLACEHOLDER");
request.setAssistantproviderid("PROVIDER_VERSION_ID_PLACEHOLDER");
request.setAssistantprovider("AGENTKIT");

const response = await UpdateAssistantVersion(connectionCfg, request);
console.dir(response.toObject());

Response

code
int32
Numeric status code for the operation.
success
boolean
Indicates whether the operation was successful.
data
Assistant
Updated assistant with the active provider version.
error
Error
Error details when the operation fails.