// File generated from our OpenAPI spec by Stainless.

package com.openai.models.beta.threads.runs.steps

import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

internal class CodeInterpreterToolCallDeltaTest {

    @Test
    fun create() {
        val codeInterpreterToolCallDelta =
            CodeInterpreterToolCallDelta.builder()
                .index(0L)
                .id("id")
                .codeInterpreter(
                    CodeInterpreterToolCallDelta.CodeInterpreter.builder()
                        .input("input")
                        .addOutput(CodeInterpreterLogs.builder().index(0L).logs("logs").build())
                        .build()
                )
                .build()

        assertThat(codeInterpreterToolCallDelta.index()).isEqualTo(0L)
        assertThat(codeInterpreterToolCallDelta.id()).contains("id")
        assertThat(codeInterpreterToolCallDelta.codeInterpreter())
            .contains(
                CodeInterpreterToolCallDelta.CodeInterpreter.builder()
                    .input("input")
                    .addOutput(CodeInterpreterLogs.builder().index(0L).logs("logs").build())
                    .build()
            )
    }
}
