chat_completions
Process an ordered chat transcript through an Algenta model to get the assistant reply and token usage. Use for single prompt-response completion without streaming or function calling.
Instructions
Run one ordered chat transcript through an Algenta model and return the assistant message plus token usage. The default text.tokenizer model is a deterministic tokenizer-backed utility route whose assistant message is a JSON tokenization summary of the user messages — not a generative LLM; provider-backed chat models advertised by list_models are routed through the configured provider service. Use responses for independent single-string utility calls. This tool does not stream and does not expose function/tool calling, and nothing is persisted. An unsupported model id fails with model_not_supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Chat-capable model id from list_models. | text.tokenizer |
| messages | Yes | Ordered conversation transcript; the last user message is the prompt. |