Open
Description
Description
The message parts contains just a single tool invocation, mainly the latest one instead of the "tool-invocations" in the order which they were called.
[
{
"id": "CDaylcB2G0WIabcA",
"createdAt": "2025-05-15T16:04:36.122Z",
"role": "user",
"content": "can you create two events next week monday? two hours apart\n\n\"A call with Yigit\"\n\nthe first event at 9am.",
"parts": [
{
"type": "text",
"text": "can you create two events next week monday? two hours apart\n\n\"A call with Yigit\"\n\nthe first event at 9am."
}
]
},
{
"id": "0196d4b0-e100-73af-9a2f-26e4de5fb38a",
"createdAt": "2025-05-15T16:04:38.934Z",
"role": "assistant",
"content": "I'll create this event for you:\n\n• **Event**: A call with Yigit\n• **Date**: Monday, May 19, 2025\n• **Time**: 9:00 AM - 10:00 AM\nOkay, I've scheduled **A call with Yigit** for you on Monday, May 19, 2025 from 9:00 AM to 10:00 AM.\nI'll create this event for you:\n\n• **Event**: A call with Yigit\n• **Date**: Monday, May 19, 2025\n• **Time**: 11:00 AM - 12:00 PM\nOkay, I've scheduled **A call with Yigit** for you on Monday, May 19, 2025 from 11:00 AM to 12:00 PM.",
"parts": [
{
"type": "step-start"
},
{
"type": "text",
"text": "I'll create this event for you:\n\n• **Event**: A call with Yigit\n• **Date**: Monday, May 19, 2025\n• **Time**: 9:00 AM - 10:00 AM\n"
},
{
"type": "tool-invocation",
"toolInvocation": {
"state": "result",
"step": 0,
"toolCallId": "tool_0_createEvent",
"toolName": "createEvent",
"args": {
"createMeetLink": false,
"endTime": "2025-05-19T10:00:00Z",
"startTime": "2025-05-19T09:00:00Z",
"summary": "A call with Yigit"
},
"result": {
"event": {
"id": "5rfvq2ptgdivd906o3qrlbha80",
"allDay": false,
"calendarId": "primary",
"end": "2025-05-19T12:00:00.000Z",
"start": "2025-05-19T11:00:00.000Z",
"title": "A call with Yigit"
},
"message": "Event created successfully."
}
}
},
{
"type": "step-start"
},
{
"type": "text",
"text": "Okay, I've scheduled **A call with Yigit** for you on Monday, May 19, 2025 from 9:00 AM to 10:00 AM.\nI'll create this event for you:\n\n• **Event**: A call with Yigit\n• **Date**: Monday, May 19, 2025\n• **Time**: 11:00 AM - 12:00 PM\n"
},
{
"type": "step-start"
},
{
"type": "text",
"text": "Okay, I've scheduled **A call with Yigit** for you on Monday, May 19, 2025 from 11:00 AM to 12:00 PM."
}
],
"toolInvocations": [
{
"state": "result",
"step": 0,
"toolCallId": "tool_0_createEvent",
"toolName": "createEvent",
"args": {
"createMeetLink": false,
"endTime": "2025-05-19T10:00:00Z",
"startTime": "2025-05-19T09:00:00Z",
"summary": "A call with Yigit"
},
"result": {
"event": {
"id": "5rfvq2ptgdivd906o3qrlbha80",
"allDay": false,
"calendarId": "primary",
"end": "2025-05-19T12:00:00.000Z",
"start": "2025-05-19T11:00:00.000Z",
"title": "A call with Yigit"
},
"message": "Event created successfully."
}
},
{
"state": "call",
"step": 1,
"toolCallId": "tool_0_createEvent",
"toolName": "createEvent",
"args": {
"createMeetLink": false,
"endTime": "2025-05-19T12:00:00Z",
"startTime": "2025-05-19T11:00:00Z",
"summary": "A call with Yigit"
}
}
],
"revisionId": "4flMetwIaSrEkQQz"
}
]
AI SDK Version
- ai: 4.3.15
- @ai-sdk/react: 1.2.12