Files

43 lines
1.2 KiB
JSON

{
"model" : "stub-chat",
"messages" : [ {
"role" : "system",
"content" : "You are the support assistant of an online electronics shop. Answer in one sentence. Use the order tool for order questions and the supplied policy text for policy questions."
}, {
"role" : "user",
"content" : "Where is my order 1001?"
}, {
"role" : "assistant",
"tool_calls" : [ {
"id" : "call_stub_1",
"type" : "function",
"function" : {
"name" : "orderStatus",
"arguments" : "{\"orderId\":\"1001\"}"
}
} ]
}, {
"role" : "tool",
"tool_call_id" : "call_stub_1",
"content" : "Order 1001 is shipped on 2026-11-20, arriving in 2 days"
} ],
"presence_penalty" : 0.0,
"frequency_penalty" : 0.0,
"tools" : [ {
"type" : "function",
"function" : {
"name" : "orderStatus",
"description" : "Looks up the delivery status of a customer order by its order number",
"parameters" : {
"type" : "object",
"properties" : {
"orderId" : {
"type" : "string",
"description" : "the numeric order number, for example 1001"
}
},
"required" : [ "orderId" ]
}
}
} ]
}