Experiments Available Columns
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns \
--header 'Galileo-API-Key: <api-key>'import requests
url = "https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns"
headers = {"Galileo-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Galileo-API-Key': '<api-key>'}};
fetch('https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Galileo-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Galileo-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns")
.header("Galileo-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Galileo-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"columns": [
{
"applicable_types": [],
"category": "standard",
"data_type": "uuid",
"description": "Galileo ID of the experiment",
"filterable": true,
"group_label": "Standard",
"id": "id",
"is_empty": false,
"is_optional": false,
"label": "ID",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "timestamp",
"description": "Timestamp of the experiment's creation",
"filterable": true,
"group_label": "Standard",
"id": "created_at",
"is_empty": false,
"is_optional": false,
"label": "Created",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "timestamp",
"description": "Timestamp of the trace or span's last update",
"filterable": true,
"group_label": "Standard",
"id": "updated_at",
"is_empty": false,
"is_optional": true,
"label": "Last Updated",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "text",
"description": "Name of the experiment",
"filterable": true,
"group_label": "Standard",
"id": "name",
"is_empty": false,
"is_optional": false,
"label": "Name",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "uuid",
"description": "Galileo ID of the project associated with this experiment",
"filterable": true,
"group_label": "Standard",
"id": "project_id",
"is_empty": false,
"is_optional": false,
"label": "Project ID",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "floating_point",
"filterable": true,
"group_label": "Standard",
"id": "ranking_score",
"is_empty": false,
"is_optional": true,
"label": "Ranking Score",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "uuid",
"filterable": true,
"group_label": "Standard",
"id": "playground_id",
"is_empty": false,
"is_optional": true,
"label": "Playground Id",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "uuid",
"filterable": true,
"group_label": "Standard",
"id": "experiment_group_id",
"is_empty": false,
"is_optional": true,
"label": "Experiment Group Id",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "text",
"filterable": true,
"group_label": "Standard",
"id": "experiment_group_name",
"is_empty": false,
"is_optional": true,
"label": "Experiment Group Name",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "boolean",
"filterable": true,
"group_label": "Standard",
"id": "experiment_group_is_system",
"is_empty": false,
"is_optional": true,
"label": "Experiment Group Is System",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "metric",
"data_type": "floating_point",
"filterable": true,
"id": "metrics/average_cost",
"is_empty": false,
"is_optional": false,
"label": "Average Cost",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "metric",
"data_type": "integer",
"filterable": true,
"id": "metrics/total_responses",
"is_empty": false,
"is_optional": false,
"label": "Total Responses",
"multi_valued": false,
"sortable": true
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}experiment
Experiments Available Columns
Procures the column information for experiments.
POST
/
v2
/
projects
/
{project_id}
/
experiments
/
available_columns
Experiments Available Columns
curl --request POST \
--url https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns \
--header 'Galileo-API-Key: <api-key>'import requests
url = "https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns"
headers = {"Galileo-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Galileo-API-Key': '<api-key>'}};
fetch('https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Galileo-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Galileo-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns")
.header("Galileo-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galileo.ai/v2/projects/{project_id}/experiments/available_columns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Galileo-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"columns": [
{
"applicable_types": [],
"category": "standard",
"data_type": "uuid",
"description": "Galileo ID of the experiment",
"filterable": true,
"group_label": "Standard",
"id": "id",
"is_empty": false,
"is_optional": false,
"label": "ID",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "timestamp",
"description": "Timestamp of the experiment's creation",
"filterable": true,
"group_label": "Standard",
"id": "created_at",
"is_empty": false,
"is_optional": false,
"label": "Created",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "timestamp",
"description": "Timestamp of the trace or span's last update",
"filterable": true,
"group_label": "Standard",
"id": "updated_at",
"is_empty": false,
"is_optional": true,
"label": "Last Updated",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "text",
"description": "Name of the experiment",
"filterable": true,
"group_label": "Standard",
"id": "name",
"is_empty": false,
"is_optional": false,
"label": "Name",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "uuid",
"description": "Galileo ID of the project associated with this experiment",
"filterable": true,
"group_label": "Standard",
"id": "project_id",
"is_empty": false,
"is_optional": false,
"label": "Project ID",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "floating_point",
"filterable": true,
"group_label": "Standard",
"id": "ranking_score",
"is_empty": false,
"is_optional": true,
"label": "Ranking Score",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "uuid",
"filterable": true,
"group_label": "Standard",
"id": "playground_id",
"is_empty": false,
"is_optional": true,
"label": "Playground Id",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "uuid",
"filterable": true,
"group_label": "Standard",
"id": "experiment_group_id",
"is_empty": false,
"is_optional": true,
"label": "Experiment Group Id",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "text",
"filterable": true,
"group_label": "Standard",
"id": "experiment_group_name",
"is_empty": false,
"is_optional": true,
"label": "Experiment Group Name",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "standard",
"data_type": "boolean",
"filterable": true,
"group_label": "Standard",
"id": "experiment_group_is_system",
"is_empty": false,
"is_optional": true,
"label": "Experiment Group Is System",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "metric",
"data_type": "floating_point",
"filterable": true,
"id": "metrics/average_cost",
"is_empty": false,
"is_optional": false,
"label": "Average Cost",
"multi_valued": false,
"sortable": true
},
{
"applicable_types": [],
"category": "metric",
"data_type": "integer",
"filterable": true,
"id": "metrics/total_responses",
"is_empty": false,
"is_optional": false,
"label": "Total Responses",
"multi_valued": false,
"sortable": true
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Was this page helpful?
⌘I