{
	"template": {
		"mappings": {
			"properties": {
				"@timestamp": {
					"type": "date"
				},
				"so_kind": {
					"ignore_above": 1024,
					"type": "keyword"
				},
				"so_operation": {
					"ignore_above": 1024,
					"type": "keyword"
				},
				"so_chat": {
					"properties": {
						"role": {
							"ignore_above": 1024,
							"type": "keyword"
						},
						"content": {
							"type": "object",
							"enabled": false
						},
						"sessionId": {
							"ignore_above": 1024,
							"type": "keyword"
						},
						"createTime": {
							"type": "date"
						},
						"deletedAt": {
							"type": "date"
						},
						"tags": {
							"ignore_above": 1024,
							"type": "keyword"
						},
						"tool_use_id": {
							"ignore_above": 1024,
							"type": "keyword"
						},
						"userId": {
							"ignore_above": 1024,
							"type": "keyword"
						},
						"message": {
							"properties": {
								"id": {
									"ignore_above": 1024,
									"type": "keyword"
								},
								"type": {
									"ignore_above": 1024,
									"type": "keyword"
								},
								"role": {
									"ignore_above": 1024,
									"type": "keyword"
								},
								"model": {
									"ignore_above": 1024,
									"type": "keyword"
								},
								"contentStr": {
									"type": "text"
								},
								"contentBlocks": {
									"type": "nested",
									"enabled": false
								},
								"stopReason": {
									"ignore_above": 1024,
									"type": "keyword"
								},
								"stopSequence": {
									"ignore_above": 1024,
									"type": "keyword"
								},
								"usage": {
									"properties": {
										"input_tokens": {
											"type": "long"
										},
										"output_tokens": {
											"type": "long"
										},
										"credits": {
											"type": "long"
										}
									}
								}
							}
						}
					}
				}
			}
		}
	},
	"_meta": {
		"ecs_version": "1.12.2"
	}
}
