import { useCallback } from "react";
export function useAgentStreamMessageFactory(input) {
    const { agent, agentStubId } = input;
    return useCallback((messageId, agentData) => {
        const currentAgent = agentData || agent;
        const effectiveAgentId = currentAgent?.id || agentStubId;
        return {
            id: messageId,
            agentId: effectiveAgentId,
            messageIndex: -1,
            role: "assistant",
            content: "",
            name: "agent",
            messageType: "streaming",
            isCompleted: false,
            model: currentAgent?.model || "",
            tokensUsed: 0,
            inputTokens: 0,
            outputTokens: 0,
            cachedInputTokens: 0,
            inputTokenCost: 0,
            outputTokenCost: 0,
            cachedInputTokenCost: 0,
            totalCost: 0,
            currency: currentAgent?.currency || "USD",
            createdDate: new Date().toISOString(),
            toolCalls: [],
        };
    }, [agent, agentStubId]);
}
//# sourceMappingURL=useAgentStreamMessageFactory.js.map