feat: forward letta-code feedback context fields to PostHog (#9567)
* feat: add flattened feedback context fields for PostHog filterability Add system info (local_time, device_type, cwd), session stats (token counts, timing), agent info (agent_name, agent_description, model), and account info (billing_tier) as flat top-level fields to the /v1/metadata/feedback endpoint. Flat fields allow direct PostHog filtering/breakdown without HogQL. 🐾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta <noreply@letta.com> * chore: regenerate API specs --------- Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -21592,6 +21592,57 @@
|
||||
},
|
||||
"settings": {
|
||||
"type": "string"
|
||||
},
|
||||
"local_time": {
|
||||
"type": "string"
|
||||
},
|
||||
"device_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"cwd": {
|
||||
"type": "string"
|
||||
},
|
||||
"total_api_ms": {
|
||||
"type": "number"
|
||||
},
|
||||
"total_wall_ms": {
|
||||
"type": "number"
|
||||
},
|
||||
"step_count": {
|
||||
"type": "number"
|
||||
},
|
||||
"prompt_tokens": {
|
||||
"type": "number"
|
||||
},
|
||||
"completion_tokens": {
|
||||
"type": "number"
|
||||
},
|
||||
"total_tokens": {
|
||||
"type": "number"
|
||||
},
|
||||
"cached_input_tokens": {
|
||||
"type": "number"
|
||||
},
|
||||
"cache_write_tokens": {
|
||||
"type": "number"
|
||||
},
|
||||
"reasoning_tokens": {
|
||||
"type": "number"
|
||||
},
|
||||
"context_tokens": {
|
||||
"type": "number"
|
||||
},
|
||||
"agent_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"agent_description": {
|
||||
"type": "string"
|
||||
},
|
||||
"model": {
|
||||
"type": "string"
|
||||
},
|
||||
"billing_tier": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["message"]
|
||||
|
||||
Reference in New Issue
Block a user