Documentation Index
Fetch the complete documentation index at: https://incredible-42686482-cursor-create-detailed-ai-agent-cookboo.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
This mirrors the Cookbook’s multi-tool flow. The model returns a function_call, you execute it locally, then send a function_call_result. Repeat for subsequent tool calls.
curl -X POST "https://api.incredible.one/v1/chat-completion" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $INCREDIBLE_API_KEY" \
-d '{
"model": "small-1",
"stream": false,
"messages": [{"role": "user", "content": "What's the weather in Tokyo right now?"}],
"functions": [
{
"name": "get_weather_info",
"description": "Get current weather information for a city",
"parameters": {
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"]
}
},
{
"name": "get_current_time",
"description": "Get the current time in a specified timezone",
"parameters": {
"type": "object",
"properties": {"timezone": {"type": "string", "enum": ["UTC", "EST", "PST", "JST", "GMT"]}},
"required": []
}
}
]
}'
The response will include a type: "function_call" for the chosen tool.
curl -X POST "https://api.incredible.one/v1/chat-completion" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $INCREDIBLE_API_KEY" \
-d '{
"model": "small-1",
"stream": false,
"messages": [
{"role": "user", "content": "What's the weather in Tokyo right now?"},
{"type": "function_call", "function_call_id": "CALL_ID_FROM_STEP_1", "function_calls": [{
"name": "get_weather_info", "input": {"city": "Tokyo"}
}]},
{"type": "function_call_result", "function_call_id": "CALL_ID_FROM_STEP_1", "function_call_results": ["Rainy, 68°F, Humidity: 90%"]}
],
"functions": [
{"name": "get_weather_info", "description": "Get current weather information for a city", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}},
{"name": "get_current_time", "description": "Get the current time in a specified timezone", "parameters": {"type": "object", "properties": {"timezone": {"type": "string", "enum": ["UTC", "EST", "PST", "JST", "GMT"]}}, "required": []}}
]
}'