PKE
Trace de abstração
Frase → JSON da LLM → claims → primitivos. Até onde o James desceu nesta fala.
PKE · 20260925115743_66505c453971722ca727a35a9d8f4fd7.log
=== 2026-09-25T14:57:43.671047Z stage=srl_trace ===
client_request_id: 66505c453971722ca727a35a9d8f4fd7
pke_request_id: req_01M3CH507BH8EHST0TBQH99WXQ
conversation_id: conv_01M3CH4S8C9854V9ETTV2EGBSA
trace_id: 66505c453971722ca727a35a9d8f4fd7
---
{
"trace_id": "66505c453971722ca727a35a9d8f4fd7",
"client_request_id": "66505c453971722ca727a35a9d8f4fd7",
"pke_request_id": "req_01M3CH507BH8EHST0TBQH99WXQ",
"guardrails": {
"max_depth": 8,
"max_llm_rounds": 6,
"max_nodes": 64,
"max_children_per_node": 8,
"max_same_concept_visits": 2,
"confidence_threshold": 0.5,
"cycle_detection": true
},
"loop": false
}
=== 2026-09-25T14:57:43.681501Z stage=discourse_input ===
client_request_id: 66505c453971722ca727a35a9d8f4fd7
pke_request_id: req_01M3CH507BH8EHST0TBQH99WXQ
conversation_id: conv_01M3CH4S8C9854V9ETTV2EGBSA
trace_id: 66505c453971722ca727a35a9d8f4fd7
---
{
"conversation_id": "conv_01M3CH4S8C9854V9ETTV2EGBSA",
"active_focus": null,
"recent_referents": [],
"allowed_entity_ids": [],
"pending_intent": null
}
=== 2026-09-25T14:57:45.208681Z stage=llm_response ===
client_request_id: 66505c453971722ca727a35a9d8f4fd7
pke_request_id: req_01M3CH507BH8EHST0TBQH99WXQ
interpreter_request_id: 748b5af4-8924-4b68-9156-54da70873eb3
conversation_id: conv_01M3CH4S8C9854V9ETTV2EGBSA
user_text: O City.
provider_request_id: 1e845fe0-8326-49d4-b05e-1e3d15574347
attempt: 1
model: deepseek-flash
latency_ms: 1515
prompt_tokens: 5558
completion_tokens: 132
total_tokens: 5690
raw_available: 1
---
{
"ir_kind": "semantic_query",
"ir": {
"raw_input": "O City.",
"utterance_kind": "query",
"primitive_hint": "attribute",
"subject": {
"text": "City",
"kind_hint": "vehicle",
"class_hint": "automobile",
"reference_kind": "contextual"
},
"attribute_expression": "*",
"stable_property_semantics": true,
"discourse_decision": "continue",
"entities_mentioned": [
{
"text": "City",
"kind_hint": "vehicle",
"class_hint": "automobile",
"reference_kind": "contextual"
}
],
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
},
"confidence": "medium"
}
}
=== 2026-09-25T14:57:45.221596Z stage=normalize ===
client_request_id: 66505c453971722ca727a35a9d8f4fd7
pke_request_id: req_01M3CH507BH8EHST0TBQH99WXQ
interpreter_request_id: 748b5af4-8924-4b68-9156-54da70873eb3
conversation_id: conv_01M3CH4S8C9854V9ETTV2EGBSA
user_text: O City.
route: semantic_v3
notes: []
---
{
"ir_kind": "semantic_query",
"ir": {
"raw_input": "O City.",
"utterance_kind": "query",
"primitive_hint": "attribute",
"subject": {
"text": "City",
"kind_hint": "vehicle",
"class_hint": "automobile",
"reference_kind": "contextual"
},
"attribute_expression": "*",
"stable_property_semantics": true,
"discourse_decision": "continue",
"entities_mentioned": [
{
"text": "City",
"kind_hint": "vehicle",
"class_hint": "automobile",
"reference_kind": "contextual"
}
],
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
},
"confidence": "medium"
}
}
=== 2026-09-25T14:57:46.716913Z stage=llm_response ===
client_request_id: 66505c453971722ca727a35a9d8f4fd7
pke_request_id: req_01M3CH507BH8EHST0TBQH99WXQ
interpreter_request_id: 748b5af4-8924-4b68-9156-54da70873eb3
conversation_id: conv_01M3CH4S8C9854V9ETTV2EGBSA
user_text: O City.
provider_request_id: 3267af29-15a7-4b8d-9e2c-9b03443c9ab9
attempt: 2
model: deepseek-flash
latency_ms: 1422
prompt_tokens: 5600
completion_tokens: 125
total_tokens: 5725
raw_available: 1
---
{
"ir_kind": "semantic_query",
"ir": {
"raw_input": "O City.",
"utterance_kind": "query",
"primitive_hint": "attribute",
"subject": {
"text": "City",
"kind_hint": "vehicle",
"reference_kind": "possessive"
},
"attribute_expression": "*",
"stable_property_semantics": true,
"entities_mentioned": [
{
"text": "City",
"kind_hint": "vehicle",
"reference_kind": "possessive",
"class_hint": "automobile"
}
],
"discourse_decision": "continue",
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
},
"confidence": "medium"
}
}
=== 2026-09-25T14:57:46.727916Z stage=normalize ===
client_request_id: 66505c453971722ca727a35a9d8f4fd7
pke_request_id: req_01M3CH507BH8EHST0TBQH99WXQ
interpreter_request_id: 748b5af4-8924-4b68-9156-54da70873eb3
conversation_id: conv_01M3CH4S8C9854V9ETTV2EGBSA
user_text: O City.
route: semantic_v3
notes: []
---
{
"ir_kind": "semantic_query",
"ir": {
"raw_input": "O City.",
"utterance_kind": "query",
"primitive_hint": "attribute",
"subject": {
"text": "City",
"kind_hint": "vehicle",
"reference_kind": "possessive"
},
"attribute_expression": "*",
"stable_property_semantics": true,
"entities_mentioned": [
{
"text": "City",
"kind_hint": "vehicle",
"reference_kind": "possessive",
"class_hint": "automobile"
}
],
"discourse_decision": "continue",
"temporal": {
"original_text": "",
"occurrence_aspect": "ongoing"
},
"confidence": "medium"
}
}
=== 2026-09-25T14:57:46.738539Z stage=conversation_decision ===
client_request_id: 66505c453971722ca727a35a9d8f4fd7
pke_request_id: req_01M3CH507BH8EHST0TBQH99WXQ
interpreter_request_id: 748b5af4-8924-4b68-9156-54da70873eb3
conversation_id: conv_01M3CH4S8C9854V9ETTV2EGBSA
trace_id: 66505c453971722ca727a35a9d8f4fd7
---
{
"decision": "DELEGATE",
"source": "SRL",
"delegated": true
}
=== 2026-09-25T14:57:46.804637Z stage=presenter_request ===
request_id: 66505c453971722ca727a35a9d8f4fd7
client_request_id: 66505c453971722ca727a35a9d8f4fd7
conversation_id: e73ea241-034f-4059-9f34-b031db536359
status: error
---
{
"user_text": "O City.",
"structured_result": {
"status": "error",
"operation": null,
"kind": null,
"value": null,
"values": [],
"relation_answer": null,
"matched_entities": [],
"candidates": [],
"reason": null,
"error_code": "PROVIDER_UNAVAILABLE",
"items": [],
"dimension": null,
"unit": null,
"entity": null,
"claims": null
},
"conversation_context": [
{
"role": "user",
"text": "Hoje eu levei meu carro na oficina."
},
{
"role": "assistant",
"text": "Você está falando da alternativa 1 ou carro?"
}
],
"presenter_provider": "deepseek",
"presenter_model": "deepseek-chat",
"attempt": 1
}
=== 2026-09-25T14:57:47.594898Z stage=presenter_response ===
request_id: 66505c453971722ca727a35a9d8f4fd7
client_request_id: 66505c453971722ca727a35a9d8f4fd7
conversation_id: e73ea241-034f-4059-9f34-b031db536359
provider_request_id: 4b4e6323-d946-44a3-b3cc-272e7ca445d2
status: ok
---
{
"text": "Não consegui consultar isso agora.",
"presenter_provider": "deepseek",
"presenter_model": "deepseek-flash",
"provider": "deepseek",
"model": "deepseek-flash",
"fallback_used": false,
"latency_ms": 776,
"attempt": 1,
"provider_request_id": "4b4e6323-d946-44a3-b3cc-272e7ca445d2",
"status": "ok"
}