Estimar Tokens
AI-generatedSummary
Estimate the number of tokens in a given text context, optionally including a user query and a system prompt.
Inputs
- Contexto (required) — Text of the context for which to estimate token usage.
- Query — Optional user question to include in the token estimation.
- System Prompt — Optional system prompt text to include in the token estimation.
Output shape
a JSON object containing the token estimation response from the VectorGov API
Returns the raw API JSON response with token count estimates. The structure depends on the remote API; no pagination or envelope wrapping applies.
Examples
Example 1: Estimate tokens for a text context
Provide 'Contexto' text. Optionally supply 'Query' and 'System Prompt'. The node sends these to the VectorGov '/api/v1/sdk/tokens' endpoint and returns token count details.