Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: llm_usage.total_tokens stat (#19177)
Will035885946790
diff --git a/api/core/agent/cot_agent_runner.py b/api/core/agent/cot_agent_runner.pyindex feb8abf6eff..5212d797d87 100644--- a/api/core/agent/cot_agent_runner.py+++ b/api/core/agent/cot_agent_runner.py@@ -80,6 +80,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):llm_usage = final_llm_usage_dict["usage"]llm_usage.prompt_tokens += usage.prompt_tokensllm_usage.completion_tokens += usage.completion_tokens+ llm_usage.total_tokens += usage.total_tokensllm_usage.prompt_price += usage.prompt_pricellm_usage.completion_price += usage.completion_pricellm_usage.total_price += usage.total_pricediff --git a/api/core/agent/fc_agent_runner.py b/api/core/agent/fc_agent_runner.pyindex a1110e77091..611a55b30a8 100644--- a/api/core/agent/fc_agent_runner.py+++ b/api/core/agent/fc_agent_runner.py@@ -65,6 +65,7 @@ class FunctionCallAgentRunner(BaseAgentRunner):llm_usage = final_llm_usage_dict["usage"]llm_usage.prompt_tokens += usage.prompt_tokensllm_usage.completion_tokens += usage.completion_tokens+ llm_usage.total_tokens += usage.total_tokensllm_usage.prompt_price += usage.prompt_pricellm_usage.completion_price += usage.completion_pricellm_usage.total_price += usage.total_price