Skip to content

Push Stat Node

Events/Chat

Push Stat

Pushes a single LLM usage stat to the chat for transparent model usage display

events_chat_push_statdataEvent callback
Inputs3
Outputs1
Security exposure10/10
Packagedata

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

3

Input

Execution
exec_in

Initiate Execution

Step Name

String
step_name

Label for this step (e.g. 'Summarization', 'Tool Selection')

Stat

Struct
stat

LLM usage statistics

LLMUsageStatsLLMUsageStats5 fields
usageUsagerequired
completion_tokensinteger:uint32required
format uint32min 0
prompt_tokensinteger:uint32required
format uint32min 0
total_tokensinteger:uint32required
format uint32min 0
costnumber | null
format double
prompt_tokens_detailsanyOf (2)
variant 1PromptTokenDetailsvariant
cached_tokensinteger | null
format uint32min 0
audio_tokensinteger | null
format uint32min 0
variant 2nullvariant
+2 more fields
modelstring | null
duration_msinteger | null
format uint64min 0
iterationsinteger | null
format uint32min 0
callsArray<ModelCallEntry>
itemsModelCallEntryarray item
modelstringrequired
usageUsagerequired
completion_tokensinteger:uint32required
format uint32min 0
prompt_tokensinteger:uint32required
format uint32min 0
total_tokensinteger:uint32required
format uint32min 0
costnumber | null
format double
prompt_tokens_detailsanyOf (2)
+2 more fields
duration_msinteger | null
format uint64min 0
Schema enforced

Output Pins

1

Output

Execution
exec_out

Done with the Execution

Node Info

Internal name
events_chat_push_stat
Category
Events/Chat