Proposal
curl --request GET \
--url https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id} \
--header 'Splunk-AO-API-Key: <api-key>'import requests
url = "https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}"
headers = {"Splunk-AO-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Splunk-AO-API-Key': '<api-key>'}};
fetch('https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}', 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}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Splunk-AO-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}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Splunk-AO-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.get("https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}")
.header("Splunk-AO-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Splunk-AO-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"proposal": {
"action": "create",
"lens_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template_id": "<string>",
"name": "<string>",
"definition": "<string>",
"counting_unit": "<string>",
"human_work": "<string>",
"value_connection": "<string>",
"evidence_refs": [
"<string>"
],
"assistant_prompt": "<string>",
"proposal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value_direction": "positive",
"updated_at": "2023-11-07T05:31:56Z"
},
"revision": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"existing_lens": {
"lens_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"head_version": 123,
"definition": {
"criteria": [
{
"agent": {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"log_stream_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "log_stream"
},
"type": "agent"
}
],
"value_rules": [
{
"position": 10,
"evaluator": {
"scorer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"level": "session"
},
"label": "<string>",
"value_per_result": "<string>"
}
],
"schema_version": 6,
"match_mode": "all"
}
},
"current_lenses": [
{
"lens_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"head_version": 123,
"definition": {
"criteria": [
{
"agent": {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"log_stream_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "log_stream"
},
"type": "agent"
}
],
"value_rules": [
{
"position": 10,
"evaluator": {
"scorer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"level": "session"
},
"label": "<string>",
"value_per_result": "<string>"
}
],
"schema_version": 6,
"match_mode": "all"
}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}lens-suggestions
Proposal
GET
/
v2
/
projects
/
{project_id}
/
runs
/
{log_stream_id}
/
lens_suggestions
/
runs
/
{suggestion_run_id}
/
proposals
/
{proposal_id}
Proposal
curl --request GET \
--url https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id} \
--header 'Splunk-AO-API-Key: <api-key>'import requests
url = "https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}"
headers = {"Splunk-AO-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Splunk-AO-API-Key': '<api-key>'}};
fetch('https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}', 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}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Splunk-AO-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}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Splunk-AO-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.get("https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}")
.header("Splunk-AO-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galileo.ai/v2/projects/{project_id}/runs/{log_stream_id}/lens_suggestions/runs/{suggestion_run_id}/proposals/{proposal_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Splunk-AO-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"proposal": {
"action": "create",
"lens_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template_id": "<string>",
"name": "<string>",
"definition": "<string>",
"counting_unit": "<string>",
"human_work": "<string>",
"value_connection": "<string>",
"evidence_refs": [
"<string>"
],
"assistant_prompt": "<string>",
"proposal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value_direction": "positive",
"updated_at": "2023-11-07T05:31:56Z"
},
"revision": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"existing_lens": {
"lens_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"head_version": 123,
"definition": {
"criteria": [
{
"agent": {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"log_stream_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "log_stream"
},
"type": "agent"
}
],
"value_rules": [
{
"position": 10,
"evaluator": {
"scorer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"level": "session"
},
"label": "<string>",
"value_per_result": "<string>"
}
],
"schema_version": 6,
"match_mode": "all"
}
},
"current_lenses": [
{
"lens_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"head_version": 123,
"definition": {
"criteria": [
{
"agent": {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"log_stream_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "log_stream"
},
"type": "agent"
}
],
"value_rules": [
{
"position": 10,
"evaluator": {
"scorer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"level": "session"
},
"label": "<string>",
"value_per_result": "<string>"
}
],
"schema_version": 6,
"match_mode": "all"
}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
APIKeyHeaderClassicAPIKeyHeaderOAuth2PasswordBearerHTTPBasic
Path Parameters
Response
Successful Response
Was this page helpful?