package com.emonster.taroaichat.service.llm.dto;

import com.emonster.taroaichat.service.llm.openrouter.tools.AITool;
import java.util.List;

/**
 * Response from AI including any tool calls.
 * Encapsulates both the message content and any tool execution results.
 */
public class AIResponse {
    private final String message;
    private final List<AITool.ToolResult> toolResults;

    public AIResponse(String message, List<AITool.ToolResult> toolResults) {
        this.message = message;
        this.toolResults = toolResults;
    }

    public String getMessage() {
        return message;
    }

    public List<AITool.ToolResult> getToolResults() {
        return toolResults;
    }

    public boolean hasToolResults() {
        return toolResults != null && !toolResults.isEmpty();
    }
}
