For setup and authentication options, see the Installation guide and Authentication.
Parameters
Configuration for the client connection.
Deployment list request.
Show child attributes
Show child attributes
Assistant ID for the deployments.
Usage
import {
ConnectionConfig,
GetAllAssistantDeploymentRequest,
GetAllAssistantDebuggerDeployment,
Paginate,
} 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 pagination = new Paginate();
pagination.setPage(1);
pagination.setPagesize(20);
const request = new GetAllAssistantDeploymentRequest();
request.setAssistantid("ASSISTANT_ID_PLACEHOLDER");
request.setPaginate(pagination);
const response = await GetAllAssistantDebuggerDeployment(connectionCfg, request);
console.dir(response.toObject());
import os
from pprint import pprint
from rapida import ConnectionConfig, Paginate
from rapida.clients.protos.assistant_deployment_pb2 import (
GetAllAssistantDeploymentRequest,
)
auth = ConnectionConfig.with_debugger(
authorization=os.getenv("RAPIDA_AUTHORIZATION"),
user_id=os.getenv("RAPIDA_AUTH_ID"),
project_id=os.getenv("RAPIDA_PROJECT_ID"),
)
connection_config = ConnectionConfig.default_connection_config(auth)
response = connection_config.assistant_deployment_client.GetAllAssistantDebuggerDeployment(
GetAllAssistantDeploymentRequest(
assistantId=int(os.getenv("RAPIDA_ASSISTANT_ID")),
paginate=Paginate(page=1, pageSize=20),
),
metadata=connection_config.auth,
)
pprint(response)
package main
import (
"context"
"fmt"
"os"
clients "github.com/rapidaai/rapida-go/rapida/clients"
connections "github.com/rapidaai/rapida-go/rapida/connections"
protos "github.com/rapidaai/rapida-go/protos"
)
func main() {
connectionConfig := connections.DefaultconnectionConfig(
connections.WithPersonalToken(
os.Getenv("RAPIDA_AUTHORIZATION"),
os.Getenv("RAPIDA_AUTH_ID"),
os.Getenv("RAPIDA_PROJECT_ID"),
),
)
response, err := clients.GetAllAssistantDebuggerDeployment(
context.Background(),
connectionConfig,
&protos.GetAllAssistantDeploymentRequest{
AssistantId: 2227823180112723968,
Paginate: &protos.Paginate{
Page: 1,
PageSize: 20,
},
},
)
if err != nil {
fmt.Printf("error while getting debugger deployments: %+v\n", err)
return
}
fmt.Printf("get debugger deployments response: %+v\n", response)
}
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Debugger deployments returned by the request.
Show child attributes
Show child attributes
Unique identifier for the debugger deployment.
Assistant ID for the deployment.
First message the assistant sends when the session starts.
Controls whether users can interrupt the opening greeting in audio sessions.
Message used when the assistant cannot understand or handle input.
Speech-to-text provider configuration.
Text-to-speech provider configuration.
Current deployment status.
Idle timeout in seconds.
Number of idle-timeout retries.
Message sent on idle timeout.
Maximum session duration in seconds.
Timestamp when the deployment was created.
Timestamp when the deployment was last updated.
Errors
| Code | Meaning |
|---|---|
1014001 | Unauthenticated request. |
1014002 | Missing authentication scope. |
1014003 | Invalid assistantId. |
1014004 | Invalid request. |
1014005 | Unable to get assistant debugger deployments. |