<?php

use Datalumo\PhpSdk\DataObjects\ChatResponse;

it('creates a chat response from array', function () {
    $response = ChatResponse::fromArray([
        'conversation_id' => 'conv-123',
        'message' => 'Here is the answer to your question.',
    ]);

    expect($response)
        ->conversationId->toBe('conv-123')
        ->message->toBe('Here is the answer to your question.');
});
