Expand description
Shared conversation, image, and tool types for protocol adapters and prompt rendering.
Modules§
- conversation
- json
- JSON serialization with Python
json.dumpsseparators. - messages
- multimodal
- Image input types and DeepSeek V4.1 image token counts.
- prompt
- Prompt text that records the byte ranges of explicit special tokens.
- special_
tokens - Special tokens used in prompt rendering and output parsing.
- tools
- Client tool definitions used when constructing a conversation.
Macros§
- prompt
- Build a
Promptfrom a format string. Template text and string arguments are plain text; aSpecialargument inserts an explicit special token.