v0.3
v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js
LangChain.js
@langchain/openai
OpenAIClient
Page
Class Page<Item>
Note: no pagination actually occurs yet, this is for forwards-compatibility.
Type Parameters
Item
Hierarchy
AbstractPage
<
Item
>
Page
Implements
PageResponse
<
Item
>
Index
Constructors
constructor
Properties
body
data
object
options
response
Methods
[async
Iterator]
get
Next
Page
get
Paginated
Items
has
Next
Page
iter
Pages
next
Page
Request
Options
Constructors
constructor
new
Page
<
Item
>
(
client
,
response
,
body
,
options
)
:
OpenAIClient
.
Page
<
Item
>
Type Parameters
Item
Parameters
client
:
OpenAIClient
response
:
Response
body
:
PageResponse
<
Item
>
options
:
FinalRequestOptions
Returns
OpenAIClient
.
Page
<
Item
>
Properties
Protected
body
body
:
unknown
data
data
:
Item
[]
object
object
:
string
Protected
options
options
:
FinalRequestOptions
Protected
response
response
:
Response
Methods
[async
Iterator]
[async
Iterator]
(
)
:
AsyncGenerator
<
Item
,
any
,
any
>
Returns
AsyncGenerator
<
Item
,
any
,
any
>
get
Next
Page
get
Next
Page
(
)
:
Promise
<
OpenAIClient
.
Page
<
Item
>
>
Returns
Promise
<
OpenAIClient
.
Page
<
Item
>
>
get
Paginated
Items
get
Paginated
Items
(
)
:
Item
[]
Returns
Item
[]
has
Next
Page
has
Next
Page
(
)
:
boolean
Returns
boolean
iter
Pages
iter
Pages
(
)
:
AsyncGenerator
<
OpenAIClient
.
Page
<
Item
>
,
any
,
any
>
Returns
AsyncGenerator
<
OpenAIClient
.
Page
<
Item
>
,
any
,
any
>
next
Page
Request
Options
next
Page
Request
Options
(
)
:
null
|
PageRequestOptions
Returns
null
|
PageRequestOptions
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
body
data
object
options
response
Methods
[async
Iterator]
get
Next
Page
get
Paginated
Items
has
Next
Page
iter
Pages
next
Page
Request
Options
LangChain.js
Loading...
Note: no pagination actually occurs yet, this is for forwards-compatibility.