AI Gateway
List Gateways
client.AIGateway.List(ctx, params) (*V4PagePaginationArray[AIGatewayListResponse], error)
GET/accounts/{account_id}/ai-gateway/gateways
Fetch a Gateway
client.AIGateway.Get(ctx, id, query) (*AIGatewayGetResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{id}
Create a new Gateway
client.AIGateway.New(ctx, params) (*AIGatewayNewResponse, error)
POST/accounts/{account_id}/ai-gateway/gateways
Update a Gateway
client.AIGateway.Update(ctx, id, params) (*AIGatewayUpdateResponse, error)
PUT/accounts/{account_id}/ai-gateway/gateways/{id}
Delete a Gateway
client.AIGateway.Delete(ctx, id, body) (*AIGatewayDeleteResponse, error)
DELETE/accounts/{account_id}/ai-gateway/gateways/{id}
AI GatewayEvaluation Types
List Evaluators
client.AIGateway.EvaluationTypes.List(ctx, params) (*V4PagePaginationArray[EvaluationTypeListResponse], error)
GET/accounts/{account_id}/ai-gateway/evaluation-types
AI GatewayLogs
List Gateway Logs
client.AIGateway.Logs.List(ctx, gatewayID, params) (*V4PagePaginationArray[LogListResponse], error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs
Get Gateway Log Detail
client.AIGateway.Logs.Get(ctx, gatewayID, id, query) (*LogGetResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}
Patch Gateway Log
client.AIGateway.Logs.Edit(ctx, gatewayID, id, params) (*LogEditResponse, error)
PATCH/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}
Delete Gateway Logs
client.AIGateway.Logs.Delete(ctx, gatewayID, params) (*LogDeleteResponse, error)
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs
Get Gateway Log Request
client.AIGateway.Logs.Request(ctx, gatewayID, id, query) (*LogRequestResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}/request
Get Gateway Log Response
client.AIGateway.Logs.Response(ctx, gatewayID, id, query) (*LogResponseResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs/{id}/response
AI GatewayDatasets
List Datasets
client.AIGateway.Datasets.List(ctx, gatewayID, params) (*V4PagePaginationArray[DatasetListResponse], error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets
Fetch a Dataset
client.AIGateway.Datasets.Get(ctx, gatewayID, id, query) (*DatasetGetResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}
Create a new Dataset
client.AIGateway.Datasets.New(ctx, gatewayID, params) (*DatasetNewResponse, error)
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets
Update a Dataset
client.AIGateway.Datasets.Update(ctx, gatewayID, id, params) (*DatasetUpdateResponse, error)
PUT/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}
Delete a Dataset
client.AIGateway.Datasets.Delete(ctx, gatewayID, id, body) (*DatasetDeleteResponse, error)
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/datasets/{id}
AI GatewayEvaluations
List Evaluations
client.AIGateway.Evaluations.List(ctx, gatewayID, params) (*V4PagePaginationArray[EvaluationListResponse], error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations
Fetch a Evaluation
client.AIGateway.Evaluations.Get(ctx, gatewayID, id, query) (*EvaluationGetResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations/{id}
Create a new Evaluation
client.AIGateway.Evaluations.New(ctx, gatewayID, params) (*EvaluationNewResponse, error)
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations
Delete a Evaluation
client.AIGateway.Evaluations.Delete(ctx, gatewayID, id, body) (*EvaluationDeleteResponse, error)
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/evaluations/{id}
AI GatewayDynamic Routing
List all AI Gateway Dynamic Routes.
client.AIGateway.DynamicRouting.List(ctx, gatewayID, query) (*DynamicRoutingListResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes
Get an AI Gateway Dynamic Route.
client.AIGateway.DynamicRouting.Get(ctx, gatewayID, id, query) (*DynamicRoutingGetResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}
Create a new AI Gateway Dynamic Route.
client.AIGateway.DynamicRouting.New(ctx, gatewayID, params) (*DynamicRoutingNewResponse, error)
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes
Update an AI Gateway Dynamic Route.
client.AIGateway.DynamicRouting.Update(ctx, gatewayID, id, params) (*DynamicRoutingUpdateResponse, error)
PATCH/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}
Delete an AI Gateway Dynamic Route.
client.AIGateway.DynamicRouting.Delete(ctx, gatewayID, id, body) (*DynamicRoutingDeleteResponse, error)
DELETE/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}
List all AI Gateway Dynamic Route Deployments.
client.AIGateway.DynamicRouting.ListDeployments(ctx, gatewayID, id, query) (*DynamicRoutingListDeploymentsResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/deployments
Create a new AI Gateway Dynamic Route Deployment.
client.AIGateway.DynamicRouting.NewDeployment(ctx, gatewayID, id, params) (*DynamicRoutingNewDeploymentResponse, error)
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/deployments
List all AI Gateway Dynamic Route Versions.
client.AIGateway.DynamicRouting.ListVersions(ctx, gatewayID, id, query) (*DynamicRoutingListVersionsResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions
Create a new AI Gateway Dynamic Route Version.
client.AIGateway.DynamicRouting.NewVersion(ctx, gatewayID, id, params) (*DynamicRoutingNewVersionResponse, error)
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions
Get an AI Gateway Dynamic Route Version.
client.AIGateway.DynamicRouting.GetVersion(ctx, gatewayID, id, versionID, query) (*DynamicRoutingGetVersionResponse, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions/{version_id}
AI GatewayProvider Configs
List Provider Configs
client.AIGateway.ProviderConfigs.List(ctx, gatewayID, params) (*V4PagePaginationArray[ProviderConfigListResponse], error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/provider_configs
Create a new Provider Configs
client.AIGateway.ProviderConfigs.New(ctx, gatewayID, params) (*ProviderConfigNewResponse, error)
POST/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/provider_configs
AI GatewayURLs
Get Gateway URL
client.AIGateway.URLs.Get(ctx, gatewayID, provider, query) (*string, error)
GET/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/url/{provider}