curl --request POST \
--url https://api.langtail.com/{workspace}/{project}/{prompt}/{environment} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '{
"variables": {
"variableName": "Your Value"
},
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"stream": false,
"model": "<string>",
"max_tokens": 123,
"temperature": 123,
"top_p": 123,
"presence_penalty": 123,
"frequency_penalty": 123,
"template": [
{
"role": "assistant",
"name": "<string>",
"content": "<string>",
"function_call": {
"name": "<string>",
"arguments": "<string>"
},
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
],
"tool_choice": "auto",
"tool_call_id": "<string>"
}
],
"tool_choice": "auto",
"response_format": {
"type": "json_object"
},
"user": "user_123",
"doNotRecord": false,
"metadata": {
"my_identifier": "my-custom-ID"
},
"seed": 123
}'