LanguageValues and typesStandard types
AI
Token counts, token usage and the messages of a chat with a model.
Topics
| AI types The AI types are the values an app passes to and from a model: chat messages and their roles, vectors and embeddings, and token counts. |
Types
| Type | What it is |
|---|---|
TokenCount | How many tokens a prompt or an answer holds, by its model's own count. |
TokenUsage | The tokens one call to a model used: what it read, what it wrote and what its cache served. |
ChatMessage | One message in a conversation with an AI model: who wrote it and what it says. |
ChatRole | Who wrote a message in a conversation with a model: system, user, assistant or tool. |
Markdown for agents: /docs/types-ai.md.Built from Jadpo main at 6cc3cb4.