Files
2026-07-13 13:32:05 +08:00

1015 lines
33 KiB
JSON

{
"uuid": "2dc7283b-5ecf-4213-8a41-bb56dc071af9",
"baseSpans": [
{
"uuid": "019d0518-4ccb-7d41-a1a6-b7af5076a287",
"name": "LangGraph",
"status": "SUCCESS",
"type": "base",
"startTime": "2026-03-19T07:56:11.852Z",
"endTime": "2026-03-19T07:56:14.101Z",
"input": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
}
]
},
"output": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
},
{
"content": "",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 29,
"prompt_tokens": 275,
"total_tokens": 304,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2WiubqXFdpXjCxv1zTJ3yVHAPrc",
"service_tier": "default",
"finish_reason": "tool_calls",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-4ccd-7ce3-9f91-58662fb187da-0",
"tool_calls": [
{
"name": "add_to_cart",
"args": {
"item": "oranges",
"quantity": 3
},
"id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"type": "tool_call"
}
],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 275,
"output_tokens": 29,
"total_tokens": 304,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
},
{
"content": "Added 3x oranges to cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "tool",
"name": "add_to_cart",
"id": "9fa5706c-4707-4f7a-8258-f8585c1dd4ac",
"tool_call_id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"status": "success"
},
{
"content": "Done — 3 oranges added to your cart. What else would you like?",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 19,
"prompt_tokens": 317,
"total_tokens": 336,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2Wjwz2eZ4zLis4yDQwhnZQCbshh",
"service_tier": "default",
"finish_reason": "stop",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-5248-7f62-8b83-e003e040bb27-0",
"tool_calls": [],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 317,
"output_tokens": 19,
"total_tokens": 336,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
}
]
},
"integration": "LangChain"
},
{
"uuid": "019d0518-5248-7f62-8b83-dff6d07291e8",
"name": "agent",
"status": "SUCCESS",
"type": "base",
"parentUuid": "019d0518-4ccb-7d41-a1a6-b7af5076a287",
"startTime": "2026-03-19T07:56:13.256Z",
"endTime": "2026-03-19T07:56:14.100Z",
"input": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
},
{
"content": "",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 29,
"prompt_tokens": 275,
"total_tokens": 304,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2WiubqXFdpXjCxv1zTJ3yVHAPrc",
"service_tier": "default",
"finish_reason": "tool_calls",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-4ccd-7ce3-9f91-58662fb187da-0",
"tool_calls": [
{
"name": "add_to_cart",
"args": {
"item": "oranges",
"quantity": 3
},
"id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"type": "tool_call"
}
],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 275,
"output_tokens": 29,
"total_tokens": 304,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
},
{
"content": "Added 3x oranges to cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "tool",
"name": "add_to_cart",
"id": "9fa5706c-4707-4f7a-8258-f8585c1dd4ac",
"tool_call_id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"status": "success"
}
]
},
"output": {
"messages": [
{
"content": "Done — 3 oranges added to your cart. What else would you like?",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 19,
"prompt_tokens": 317,
"total_tokens": 336,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2Wjwz2eZ4zLis4yDQwhnZQCbshh",
"service_tier": "default",
"finish_reason": "stop",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-5248-7f62-8b83-e003e040bb27-0",
"tool_calls": [],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 317,
"output_tokens": 19,
"total_tokens": 336,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
}
]
},
"integration": "LangChain"
},
{
"uuid": "019d0518-5594-7383-9d04-9f77d0ffaba9",
"name": "should_continue",
"status": "SUCCESS",
"type": "base",
"parentUuid": "019d0518-5248-7f62-8b83-dff6d07291e8",
"startTime": "2026-03-19T07:56:14.100Z",
"endTime": "2026-03-19T07:56:14.100Z",
"input": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
},
{
"content": "",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 29,
"prompt_tokens": 275,
"total_tokens": 304,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2WiubqXFdpXjCxv1zTJ3yVHAPrc",
"service_tier": "default",
"finish_reason": "tool_calls",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-4ccd-7ce3-9f91-58662fb187da-0",
"tool_calls": [
{
"name": "add_to_cart",
"args": {
"item": "oranges",
"quantity": 3
},
"id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"type": "tool_call"
}
],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 275,
"output_tokens": 29,
"total_tokens": 304,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
},
{
"content": "Added 3x oranges to cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "tool",
"name": "add_to_cart",
"id": "9fa5706c-4707-4f7a-8258-f8585c1dd4ac",
"tool_call_id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"status": "success"
},
{
"content": "Done — 3 oranges added to your cart. What else would you like?",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 19,
"prompt_tokens": 317,
"total_tokens": 336,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2Wjwz2eZ4zLis4yDQwhnZQCbshh",
"service_tier": "default",
"finish_reason": "stop",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-5248-7f62-8b83-e003e040bb27-0",
"tool_calls": [],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 317,
"output_tokens": 19,
"total_tokens": 336,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
}
]
},
"output": "__end__",
"integration": "LangChain"
},
{
"uuid": "019d0518-5245-73d0-afe9-317a1e32c7c2",
"name": "tools",
"status": "SUCCESS",
"type": "base",
"parentUuid": "019d0518-4ccb-7d41-a1a6-b7af5076a287",
"startTime": "2026-03-19T07:56:13.253Z",
"endTime": "2026-03-19T07:56:13.255Z",
"input": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
},
{
"content": "",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 29,
"prompt_tokens": 275,
"total_tokens": 304,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2WiubqXFdpXjCxv1zTJ3yVHAPrc",
"service_tier": "default",
"finish_reason": "tool_calls",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-4ccd-7ce3-9f91-58662fb187da-0",
"tool_calls": [
{
"name": "add_to_cart",
"args": {
"item": "oranges",
"quantity": 3
},
"id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"type": "tool_call"
}
],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 275,
"output_tokens": 29,
"total_tokens": 304,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
}
]
},
"output": {
"messages": [
{
"content": "Added 3x oranges to cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "tool",
"name": "add_to_cart",
"id": "9fa5706c-4707-4f7a-8258-f8585c1dd4ac",
"tool_call_id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"status": "success"
}
]
},
"toolsCalled": [
{
"name": "add_to_cart",
"output": {
"content": "Added 3x oranges to cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "tool",
"name": "add_to_cart",
"id": "9fa5706c-4707-4f7a-8258-f8585c1dd4ac",
"tool_call_id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"status": "success"
},
"inputParameters": {
"item": "oranges",
"quantity": 3
}
}
],
"integration": "LangChain"
},
{
"uuid": "019d0518-4ccc-7832-b6a9-e6d88dffbf73",
"name": "agent",
"status": "SUCCESS",
"type": "base",
"parentUuid": "019d0518-4ccb-7d41-a1a6-b7af5076a287",
"startTime": "2026-03-19T07:56:11.852Z",
"endTime": "2026-03-19T07:56:13.252Z",
"input": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
}
]
},
"output": {
"messages": [
{
"content": "",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 29,
"prompt_tokens": 275,
"total_tokens": 304,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2WiubqXFdpXjCxv1zTJ3yVHAPrc",
"service_tier": "default",
"finish_reason": "tool_calls",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-4ccd-7ce3-9f91-58662fb187da-0",
"tool_calls": [
{
"name": "add_to_cart",
"args": {
"item": "oranges",
"quantity": 3
},
"id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"type": "tool_call"
}
],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 275,
"output_tokens": 29,
"total_tokens": 304,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
}
]
},
"integration": "LangChain"
},
{
"uuid": "019d0518-5244-7943-ae7f-e486b2bcc9f9",
"name": "should_continue",
"status": "SUCCESS",
"type": "base",
"parentUuid": "019d0518-4ccc-7832-b6a9-e6d88dffbf73",
"startTime": "2026-03-19T07:56:13.252Z",
"endTime": "2026-03-19T07:56:13.252Z",
"input": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
},
{
"content": "",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 29,
"prompt_tokens": 275,
"total_tokens": 304,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2WiubqXFdpXjCxv1zTJ3yVHAPrc",
"service_tier": "default",
"finish_reason": "tool_calls",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-4ccd-7ce3-9f91-58662fb187da-0",
"tool_calls": [
{
"name": "add_to_cart",
"args": {
"item": "oranges",
"quantity": 3
},
"id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"type": "tool_call"
}
],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 275,
"output_tokens": 29,
"total_tokens": 304,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
}
]
},
"output": "tools",
"integration": "LangChain"
}
],
"agentSpans": [],
"llmSpans": [
{
"uuid": "019d0518-5248-7f62-8b83-e003e040bb27",
"name": "ChatOpenAI",
"status": "SUCCESS",
"type": "llm",
"parentUuid": "019d0518-5248-7f62-8b83-dff6d07291e8",
"startTime": "2026-03-19T07:56:13.256Z",
"endTime": "2026-03-19T07:56:14.099Z",
"input": [
{
"role": "human",
"content": "You are a helpful shopping assistant. Help users:\n - Add/remove items from their cart\n - View their cart\n - Apply coupons\n - Complete checkout\n Remember the conversation context."
},
{
"role": "human",
"content": "Add 3 oranges to my cart"
},
{
"role": "ai",
"content": ""
},
{
"role": "tool",
"content": "Added 3x oranges to cart"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'add_to_cart', 'description': 'Add an item to the shopping cart.', 'parameters': {'properties': {'item': {'type': 'string'}, 'quantity': {'default': 1, 'type': 'integer'}}, 'required': ['item'], 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'remove_from_cart', 'description': 'Remove an item from the shopping cart.', 'parameters': {'properties': {'item': {'type': 'string'}}, 'required': ['item'], 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'view_cart', 'description': 'View the current shopping cart contents.', 'parameters': {'properties': {}, 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'apply_coupon', 'description': 'Apply a coupon code to the cart.', 'parameters': {'properties': {'code': {'type': 'string'}}, 'required': ['code'], 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'checkout', 'description': 'Proceed to checkout.', 'parameters': {'properties': {}, 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'confirm_order', 'description': 'Confirm and place the order.', 'parameters': {'properties': {}, 'type': 'object'}}}"
}
],
"output": {
"role": "AI",
"content": "Done — 3 oranges added to your cart. What else would you like?",
"tool_calls": []
},
"model": "gpt-5.4-mini-2025-08-07",
"inputTokenCount": 317.0,
"outputTokenCount": 19.0,
"integration": "LangChain",
"provider": "OpenAI"
},
{
"uuid": "019d0518-4ccd-7ce3-9f91-58662fb187da",
"name": "ChatOpenAI",
"status": "SUCCESS",
"type": "llm",
"parentUuid": "019d0518-4ccc-7832-b6a9-e6d88dffbf73",
"startTime": "2026-03-19T07:56:11.853Z",
"endTime": "2026-03-19T07:56:13.251Z",
"input": [
{
"role": "human",
"content": "You are a helpful shopping assistant. Help users:\n - Add/remove items from their cart\n - View their cart\n - Apply coupons\n - Complete checkout\n Remember the conversation context."
},
{
"role": "human",
"content": "Add 3 oranges to my cart"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'add_to_cart', 'description': 'Add an item to the shopping cart.', 'parameters': {'properties': {'item': {'type': 'string'}, 'quantity': {'default': 1, 'type': 'integer'}}, 'required': ['item'], 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'remove_from_cart', 'description': 'Remove an item from the shopping cart.', 'parameters': {'properties': {'item': {'type': 'string'}}, 'required': ['item'], 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'view_cart', 'description': 'View the current shopping cart contents.', 'parameters': {'properties': {}, 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'apply_coupon', 'description': 'Apply a coupon code to the cart.', 'parameters': {'properties': {'code': {'type': 'string'}}, 'required': ['code'], 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'checkout', 'description': 'Proceed to checkout.', 'parameters': {'properties': {}, 'type': 'object'}}}"
},
{
"role": "Tool Input",
"content": "{'type': 'function', 'function': {'name': 'confirm_order', 'description': 'Confirm and place the order.', 'parameters': {'properties': {}, 'type': 'object'}}}"
}
],
"output": {
"role": "AI",
"content": "",
"tool_calls": [
{
"name": "add_to_cart",
"args": {
"item": "oranges",
"quantity": 3
},
"id": "call_HrHcyincBhfUeI1kKCbJYOzP"
}
]
},
"model": "gpt-5.4-mini-2025-08-07",
"inputTokenCount": 275.0,
"outputTokenCount": 29.0,
"integration": "LangChain",
"provider": "OpenAI"
}
],
"retrieverSpans": [],
"toolSpans": [
{
"uuid": "019d0518-5246-7b81-8322-ce0586df6936",
"name": "add_to_cart",
"status": "SUCCESS",
"type": "tool",
"parentUuid": "019d0518-5245-73d0-afe9-317a1e32c7c2",
"startTime": "2026-03-19T07:56:13.254Z",
"endTime": "2026-03-19T07:56:13.255Z",
"input": {
"item": "oranges",
"quantity": 3
},
"output": {
"content": "Added 3x oranges to cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "tool",
"name": "add_to_cart",
"id": "9fa5706c-4707-4f7a-8258-f8585c1dd4ac",
"tool_call_id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"status": "success"
},
"integration": "LangChain"
}
],
"startTime": "2026-03-19T07:56:11.852Z",
"endTime": "2026-03-19T07:56:14.101Z",
"name": "langgraph-stateless",
"tags": [
"langgraph",
"stateless"
],
"environment": "development",
"input": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
}
]
},
"output": {
"messages": [
{
"content": "Add 3 oranges to my cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "human",
"id": "2a6ba62e-0cae-43f6-a5d7-bc8543cf5a59"
},
{
"content": "",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 29,
"prompt_tokens": 275,
"total_tokens": 304,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2WiubqXFdpXjCxv1zTJ3yVHAPrc",
"service_tier": "default",
"finish_reason": "tool_calls",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-4ccd-7ce3-9f91-58662fb187da-0",
"tool_calls": [
{
"name": "add_to_cart",
"args": {
"item": "oranges",
"quantity": 3
},
"id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"type": "tool_call"
}
],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 275,
"output_tokens": 29,
"total_tokens": 304,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
},
{
"content": "Added 3x oranges to cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "tool",
"name": "add_to_cart",
"id": "9fa5706c-4707-4f7a-8258-f8585c1dd4ac",
"tool_call_id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"status": "success"
},
{
"content": "Done — 3 oranges added to your cart. What else would you like?",
"additional_kwargs": {
"refusal": null
},
"response_metadata": {
"token_usage": {
"completion_tokens": 19,
"prompt_tokens": 317,
"total_tokens": 336,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
}
},
"model_provider": "openai",
"model_name": "gpt-5.4-mini-2025-08-07",
"system_fingerprint": null,
"id": "chatcmpl-DL2Wjwz2eZ4zLis4yDQwhnZQCbshh",
"service_tier": "default",
"finish_reason": "stop",
"logprobs": null
},
"type": "ai",
"id": "lc_run--019d0518-5248-7f62-8b83-e003e040bb27-0",
"tool_calls": [],
"invalid_tool_calls": [],
"usage_metadata": {
"input_tokens": 317,
"output_tokens": 19,
"total_tokens": 336,
"input_token_details": {
"audio": 0,
"cache_read": 0
},
"output_token_details": {
"audio": 0,
"reasoning": 0
}
}
}
]
},
"status": "SUCCESS",
"toolsCalled": [
{
"name": "add_to_cart",
"output": {
"content": "Added 3x oranges to cart",
"additional_kwargs": {},
"response_metadata": {},
"type": "tool",
"name": "add_to_cart",
"id": "9fa5706c-4707-4f7a-8258-f8585c1dd4ac",
"tool_call_id": "call_HrHcyincBhfUeI1kKCbJYOzP",
"status": "success"
},
"inputParameters": {
"item": "oranges",
"quantity": 3
}
}
]
}