The text that the stream helper of a client of `spans` accumulates.
(sync: bool, spans: Spans, **options: Any)
| 7946 | |
| 7947 | |
| 7948 | async def final_text(sync: bool, spans: Spans, **options: Any) -> str: |
| 7949 | """The text that the stream helper of a client of `spans` accumulates.""" |
| 7950 | if sync: |
| 7951 | with make_client(spans, **options).messages.stream(**REQUEST) as stream: |
| 7952 | return stream.get_final_text() |
| 7953 | async with make_async_client(spans, **options).messages.stream(**REQUEST) as async_stream: |
| 7954 | return await async_stream.get_final_text() |
| 7955 | |
| 7956 | |
| 7957 | class TestTracingFailures: |
no test coverage detected