v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.7
LangChain.js
langchain-core/language_models/base
TokenUsage
Interface TokenUsage
Shared interface for token usage return type from LLM calls.
interface
TokenUsage
{
completionTokens
?:
number
;
promptTokens
?:
number
;
totalTokens
?:
number
;
}
Index
Properties
completion
Tokens?
prompt
Tokens?
total
Tokens?
Properties
Optional
completion
Tokens
completion
Tokens
?:
number
Optional
prompt
Tokens
prompt
Tokens
?:
number
Optional
total
Tokens
total
Tokens
?:
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
completion
Tokens
prompt
Tokens
total
Tokens
LangChain.js - v0.2.7
langchain-anthropic
langchain-aws
langchain-azure-dynamic-sessions
langchain-azure-openai
langchain-cloudflare
langchain-cohere
langchain-community
agents/toolkits
aws_sfn
base
connery
caches
cloudflare_kv
ioredis
momento
upstash_redis
callbacks/handlers
llmonitor
lunary
upstash_ratelimit
chains/graph_qa/cypher
Loading...
Generated using
TypeDoc
Shared interface for token usage return type from LLM calls.