import {
  createUserMessage,
  createSystemMessage,
  createErrorMessage,
  createToolMessage,
  createStreamingMessage
} from "../utils/messageFormatting.js";
class MessageService {
  /**
   * Creates a user message
   */
  createUserMessage(content) {
    return createUserMessage(content);
  }
  /**
   * Creates a system message
   */
  createSystemMessage(content) {
    return createSystemMessage(content);
  }
  /**
   * Creates an error message
   */
  createErrorMessage(error) {
    return createErrorMessage(error);
  }
  /**
   * Creates a tool call message
   */
  createToolMessage(toolName) {
    return createToolMessage(toolName);
  }
  /**
   * Creates a streaming placeholder message
   */
  createStreamingMessage() {
    return createStreamingMessage();
  }
  /**
   * Gets visible messages (for performance - limit to recent messages)
   */
  getVisibleMessages(messages, limit = 50) {
    if (limit <= 0) {
      return [];
    }
    return messages.slice(-limit);
  }
}
export {
  MessageService
};
