f 8ddlmZmZmZmZmZmZddlmZm Z m Z ddl m Z m Z mZmZgdZedZe GddeZGd d eee eeeZGd d eee eeeZGd deee eeeZGddeee eeeZy))AnyListGenericTypeVarOptionalcast)Protocoloverrideruntime_checkable)BasePagePageInfo BaseSyncPage BaseAsyncPage)SyncPage AsyncPageSyncCursorPageAsyncCursorPage_TceZdZUeeed<y)CursorPageItemidN)__name__ __module__ __qualname__rstr__annotations__Z/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/openai/pagination.pyrr s  rrcZeZdZUdZeeed<eed<edeefdZ eddZ y) rLNote: no pagination actually occurs yet, this is for forwards-compatibility.dataobjectreturnc&|j}|sgS|SNr#selfr#s r _get_page_itemszSyncPage._get_page_itemsyyI rNcyz This page represents a response that isn't actually paginated at the API level so there will never be a next page. Nrr*s r next_page_infozSyncPage.next_page_info rr%N rrr__doc__rrrrr r+r0rrr rrDV r(N K b rrcZeZdZUdZeeed<eed<edeefdZ eddZ y) rr"r#r$r%c&|j}|sgS|Sr'r(r)s r r+zAsyncPage._get_page_items.r,rNcyr.rr/s r r0zAsyncPage.next_page_info5r1rr2r3rrr rr(r5rrcVeZdZUeeed<edeefdZedee fdZ y)rr#r%c&|j}|sgS|Sr'r(r)s r r+zSyncCursorPage._get_page_itemsAr,rc|j}|sytt|d}t|tr |j yt d|j iSNafter)paramsr#rr isinstancerrrr*r#items r r0zSyncCursorPage.next_page_infoHJyyCb"$/477?122rN rrrrrrr r+rrr0rrr rr>H r(N b  3 2 3 3rrcVeZdZUeeed<edeefdZedee fdZ y)rr#r%c&|j}|sgS|Sr'r(r)s r r+zAsyncCursorPage._get_page_itemsYr,rc|j}|sytt|d}t|tr |j yt d|j iSr<r@rBs r r0zAsyncCursorPage.next_page_info`rDrNrErrr rrVrFrrN)typingrrrrrrtyping_extensionsr r r _base_clientr rrr__all__rrrrrrrrr rNs?>CCII H T]X|B"wr{, b!8B<,3\"%x|WR[303mB'"wr{3r