Hugging Face · Arazzo Workflow
Hugging Face TGI Inspect and Generate
Version 1.0.0
Read a TGI server's info, tokenize a prompt to check its length, then generate text.
Provider
Workflows
tgi-inspect-and-generate
Inspect a TGI server, tokenize a prompt, and generate text from it.
Reads TGI server info, tokenizes the prompt to measure its token count, and generates text from the prompt against the loaded model.
1
getServerInfo
Read the TGI server info to learn the loaded model id and its maximum input length before submitting a prompt.
2
tokenizePrompt
Tokenize the prompt to measure how many tokens it consumes against the server's input limit.
3
generateText
Generate text from the prompt using the loaded model with details enabled so the finish reason and token count are returned.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.