Skip to main content

Module message

Module message 

Source
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

TypeRole
MessageSingle message in API request/response (role, content, tool calls, parts)
RoleMessage role: System, User, Assistant, Developer, Tool
ToolCallTool invocation requested by the assistant
ToolResultResult of a tool call (returned as role: "tool" message)
ContentPartMultimodal content block: text, image, document, video, audio

Structs§

Message
A single message in the LLM API request / response payload.
ToolCall
A tool call requested by the assistant in its response.
ToolResult
Result returned by a tool, attached as a role: "tool" message in the conversation history.

Enums§

ContentPart
Multimodal content block within a user message.
Role
OpenAI-compatible message role.