For more authentication options, see: https://doc.rapida.ai/api-reference/authentication
Parameters
ConnectionConfig
required
Configuration for the client connection.
GetAllAssistantAnalysisRequest
required
Show child attributes
Show child attributes
uint64
required
The unique identifier of the assistant to retrieve analyses for.
Paginate
Usage
from rapida import (
ConnectionConfig,
GetAllAssistantConversationRequest,
get_all_assistant_conversation,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_all_assistant_conversation(
client_cfg=connection_config,
request=GetAllAssistantConversationRequest(
assistantId="{assistant_id}",
paginate=Paginate(page=0, pageSize=20),
# criterias=[Criteria(key="KEY", value="VALUE", logic="should")],
),
)
pprint(response)
import (
"context"
"fmt"
"os"
clients "github.com/rapidaai/rapida-go/rapida/clients"
rapida_proto "github.com/rapidaai/rapida-go/rapida/clients/protos"
connections "github.com/rapidaai/rapida-go/rapida/connections"
)
func main() {
// Configure client connection using RAPIDA_PROJECT_CREDENTIAL environment variable
connectionConfig := connections.
DefaultconnectionConfig(connections.WithSDK(os.Getenv("RAPIDA_PROJECT_CREDENTIAL")))
// Retrieve all assistant analyses with pagination
response, err := clients.GetAllAssistantAnalysis(context.Background(), connectionConfig, &rapida_proto.GetAllAssistantAnalysisRequest{
AssistantId: 3456789876541212,
Paginate: &rapida_proto.Paginate{
Page: 0,
PageSize: 20,
},
// Optional: Add search criteria
// Criterias: []*rapida_proto.Criteria{{
// Key: "key",
// Value: "value",
// Logic: "should", // or "must"
// }},
})
if err != nil {
fmt.Printf("Error while making call using rapida: %+v\n", err)
return
}
// Print the response
fmt.Printf("Rapida calling response: %+v\n", response)
}
import {
ConnectionConfig,
Paginate,
GetAllAssistantAnalysis,
GetAllAssistantAnalysisRequest,
} from "@rapidaai/nodejs";
(async () => {
const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
ConnectionConfig.WithSDK({
ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
})
);
getAllAssistantAnalysis(connectionCfg, 56789678987890121, 0, 20);
})();
async function getAllAssistantAnalysis(connectionCfg, assistantId, page = 0, pageSize = 20) {
const pagination = new Paginate();
pagination.setPage(page);
pagination.setPageSize(pageSize);
const request = new GetAllAssistantAnalysisRequest();
request.setAssistantId(assistantId);
request.setPaginate(pagination);
try {
const response = await GetAllAssistantAnalysis(request);
console.log("All Assistant Analyses Response:", response.toObject());
} catch (error) {
console.error("Error with GetAllAssistantAnalysis call:", error);
}
}
Response
int32
Numeric status code for the operation.
boolean
Indicates whether the operation was successful.
AssistantAnalysis[]
Array of assistant analysis objects.
Show child attributes
Show child attributes
uint64
Unique identifier for the assistant analysis.
string
Name of the assistant analysis.
string
Description of the assistant analysis purpose.
uint64
Identifier of the associated endpoint.
string
Version of the endpoint being used.
map[string]string
Key-value pairs of parameters for the endpoint.
uint64
Identifier of the associated assistant.
string
Current status of the assistant analysis.
uint64
Identifier of the analysis creator.
User
User object of the analysis creator.
uint64
Identifier of the last updater.
User
User object of the last updater.
timestamp
Timestamp when the analysis was created.
timestamp
Timestamp when the analysis was last updated.
uint32
Priority level for analysis execution.
Paginated
Pagination information for the response.