curl -X POST "https://{BASE_URL}/api/gpt/v1/messages/validate" \
-H "Authorization: Bearer {API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"model": "default",
"max_tokens": 128,
"messages": [
{ "role": "user", "content": "What is the average of the Q1 revenue column?" }
],
"tools": [
{ "name": "tabular_analysis", "type": "tabular_analysis_v1" }
],
"tool_choice": { "type": "auto" },
"tool_context": [
{
"type": "ingested_artifact",
"context_filter": {
"collection": "{collectionID}"
}
}
]
}'