Expand description
LLM wire-format types — Role, Message, ToolCall, and ContentPart.
These are the types serialized into JSON for API calls and received in responses.
They are distinct from the richer intermediate representation in flashmind-core
(Conversation / ConversationEntry).
§Key types
| Type | Role |
|---|---|
Message | Single message in API request/response (role, content, tool calls, parts) |
Role | Message role: System, User, Assistant, Developer, Tool |
ToolCall | Tool invocation requested by the assistant |
ToolResult | Result of a tool call (returned as role: "tool" message) |
ContentPart | Multimodal content block: text, image, document, video, audio |
Structs§
- Message
- A single message in the LLM API request / response payload.
- Tool
Call - A tool call requested by the assistant in its response.
- Tool
Result - Result returned by a tool, attached as a
role: "tool"message in the conversation history.
Enums§
- Content
Part - Multimodal content block within a user message.
- Role
- OpenAI-compatible message role.