For the complete documentation index, see llms.txt. This page is also available as Markdown.

OutputTokenCount

The OutputTokenCount() function returns the number of output tokens that the AI model has generated for an AI agent conversation. Output tokens cover everything the model returns, such as the agent's replies and, when enabled, its reasoning.

Use this function together with InputTokenCount() for cost tracking, usage quotas, or to display token usage in the application.

This function is NOT SQL compatible. For more information about SQL compatibility, see our documentation.

Syntax

OutputTokenCount(conversation)

OutputTokenCount([Client.Conversation]) => 342

Parameters

Name
Type
Required
Description

conversation

AI agent conversation

☑️

an AI agent conversation field from the data model

Last updated

Was this helpful?