For more authentication options, see: https://doc.rapida.ai/api-reference/authentication
Parameters
Configuration for the client connection.
Show child attributes
Show child attributes
The unique identifier of the assistant to retrieve analyses for.
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
Numeric status code for the operation.
Indicates whether the operation was successful.
Array of assistant analysis objects.
Show child attributes
Show child attributes
Unique identifier for the assistant analysis.
Name of the assistant analysis.
Description of the assistant analysis purpose.
Identifier of the associated endpoint.
Version of the endpoint being used.
Key-value pairs of parameters for the endpoint.
Identifier of the associated assistant.
Current status of the assistant analysis.
Identifier of the analysis creator.
User object of the analysis creator.
Identifier of the last updater.
User object of the last updater.
Timestamp when the analysis was created.
Timestamp when the analysis was last updated.
Priority level for analysis execution.
Pagination information for the response.