Overview
TheAskFredMessage type represents a single question-answer exchange within an AskFred conversation thread. Each message contains the user’s query, the AI-generated response, and optional follow-up suggestions.
Fields
String!
required
Unique identifier for the message
String!
required
ID of the parent thread this message belongs to
String!
required
The question or query submitted by the user
String!
required
The AI-generated response to the query, formatted according to the specified format_mode
[String!]
Array of suggested follow-up questions based on the context of the conversation
AskFredMessageStatus!
required
Current status of the message processing. See AskFredMessageStatus below.
String!
required
ISO 8601 timestamp when the message was created
String
ISO 8601 timestamp when the message was last updated
AskFredMessageStatus
An enum representing the processing status of a message:enum value
The query is currently being processed
enum value
The query has been successfully processed and answered
enum value
The query processing failed
Example
Format Modes
Theanswer field can be formatted in different ways based on the format_mode parameter used when creating or continuing a thread:
Markdown Format
Rich text with headers, lists, bold/italic text, and other markdown features for enhanced readability.Plaintext Format
Concise text without any formatting, suitable for systems that don’t support markdown.Related Types
AskFredThread
Parent thread containing messages
AskFredResponse
Response wrapper for newly created messages