For more authentication options, see: https://doc.rapida.ai/api-reference/authentication
Parameters
ConnectionConfig
required
Configuration for the client connection.
GetAssistantAnalysisRequest
required
Usage
from rapida import (
ConnectionConfig,
GetAssistantAnalysisRequest,
get_assistant_analysis,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_assistant_analysis(
client_cfg=connection_config,
request=GetAssistantAnalysisRequest(
id="{assistant_analysis_id}", assistantId="{assistant_id}"
),
)
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 assistant analysis information
response, err := clients.GetAssistantAnalysis(context.Background(), connectionConfig, &rapida_proto.GetAssistantAnalysisRequest{
AssistantId: 3456789876541212,
Id: 567898765456788765,
})
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,
GetAssistantAnalysis,
GetAssistantAnalysisRequest,
} from "@rapidaai/nodejs";
(async () => {
const connectionCfg = ConnectionConfig.DefaultConnectionConfig(
ConnectionConfig.WithSDK({
ApiKey: process.env.RAPIDA_PROJECT_CREDENTIAL,
})
);
getAssistantAnalysis(connectionCfg, 3456789876541212, 567898765456788765);
})();
async function getAssistantAnalysis(connectionCfg, assistantId, analysisId) {
const request = new GetAssistantAnalysisRequest();
request.setAssistantId(assistantId);
request.setId(analysisId);
try {
const response = await GetAssistantAnalysis(request);
console.log("Assistant Analysis Response:", response.toObject());
} catch (error) {
console.error("Error with GetAssistantAnalysis call:", error);
}
}
Response
int32
Numeric status code for the operation.
boolean
Indicates whether the operation was successful.
AssistantAnalysis
Detailed information about the assistant analysis.
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.