promptflow.tracing.contracts.iterator_proxy module#

class promptflow.tracing.contracts.iterator_proxy.AsyncIteratorProxy(iterator: AsyncIterator[Any])#

Bases: ContextManagerProxy

A proxy for an async iterator that can record all items that have been yielded.

property items: list#

Get all items that have been yielded from the iterator.

Returns:

A list of yielded items.

class promptflow.tracing.contracts.iterator_proxy.IteratorProxy(iterator: Iterator[Any])#

Bases: ContextManagerProxy

A proxy for an iterator that can record all items that have been yielded.

property items: list#

Get all items that have been yielded from the iterator.

Returns:

A list of yielded items.