BaseAITracingTest

@TestInstance(value = TestInstance.Lifecycle.PER_CLASS)
abstract class BaseAITracingTest : BaseOpenTelemetryTracingTest(source)

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
protected object Companion

Functions

Link copied to clipboard
protected fun analyzeSpans(): List<SpanData>
Link copied to clipboard
protected fun assertTracesCount(expectedCount: Int, traces: List<SpanData>)
Link copied to clipboard
protected fun assumeTracesCount(assumedCount: Int, traces: List<SpanData>)
Link copied to clipboard
@BeforeEach
fun enableTracingBeforeTest()
Link copied to clipboard
protected fun <T> flushTracesAndAssumeToolCalled(response: T, toolName: String, containsToolCall: (T, String) -> Boolean)
Link copied to clipboard
protected fun SpanData.getAttribute(spanAttributeKey: TracySpanAttributes): String?
Link copied to clipboard
protected fun provideContentCapturePolicies(): Stream<Arguments>
Link copied to clipboard
protected fun provideFilesForUpload(): Stream<Arguments>

Expects sample.pdf file under resources directory of the test module.

Link copied to clipboard
protected fun provideImagesForUpload(): Stream<Arguments>

Expects image.jpg image under resources directory of the test module.

Link copied to clipboard
protected fun readResource(filepath: String): InputStream
Link copied to clipboard
@AfterEach
fun resetExporter()
Link copied to clipboard
@BeforeAll
fun setupTelemetry()
Link copied to clipboard
@AfterAll
fun shutdownTelemetry()
Link copied to clipboard

Removes enclosing double quotes from the string if present and replaces escaped newline characters ("\n") with actual newlines.

Link copied to clipboard
protected fun validateBasicTracing(url: String, model: String)
Link copied to clipboard
protected fun verifyMediaContentUploadAttributes(span: SpanData, expected: List<MediaContentAttributeValues>)