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

InputTokenCount

The InputTokenCount() function returns the number of input tokens that have been sent to the AI model for an AI agent conversation. Input tokens cover everything the model receives, such as the agent instructions, the conversation history and the user's prompt.

Use this function together with OutputTokenCount() 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

InputTokenCount(conversation)

InputTokenCount([Client.Conversation]) => 1284

Parameters

Name
Type
Required
Description

conversation

AI agent conversation

☑️

an AI agent conversation field from the data model

Last updated

Was this helpful?