v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.10
LangChain.js
langchain/experimental/openai_assistant
OpenAIAssistantRunnable
Class OpenAIAssistantRunnable<AsAgent, RunInput>
Type Parameters
AsAgent
extends
boolean
|
undefined
RunInput
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Hierarchy (
view full
)
Toolkit
<
RunInput
,
ExtractRunOutput
<
AsAgent
>
>
OpenAIAssistantRunnable
Index
Constructors
constructor
Properties
assistant
Id
poll
Interval
Ms
as
Agent?
Methods
delete
Assistant
get
Assistant
invoke
modify
Assistant
create
Assistant
Constructors
constructor
new
OpenAIAssistant
Runnable
<
AsAgent
,
RunInput
>
(
fields
)
:
OpenAIAssistantRunnable
<
AsAgent
,
RunInput
>
Type Parameters
AsAgent
extends
undefined
|
boolean
RunInput
extends
Record
<
string
,
any
>
=
Record
<
string
,
any
>
Parameters
fields
:
OpenAIAssistantRunnableInput
<
AsAgent
>
Returns
OpenAIAssistantRunnable
<
AsAgent
,
RunInput
>
Properties
assistant
Id
assistant
Id
:
string
poll
Interval
Ms
poll
Interval
Ms
:
number
= 1000
Optional
as
Agent
as
Agent
?:
AsAgent
Methods
delete
Assistant
delete
Assistant
(
)
:
Promise
<
any
>
Delete an assistant.
Returns
Promise
<
any
>
Link
get
Assistant
get
Assistant
(
)
:
Promise
<
any
>
Retrieves an assistant.
Returns
Promise
<
any
>
Link
invoke
invoke
(
input
,
_options
?
)
:
Promise
<
ExtractRunOutput
<
AsAgent
>
>
Parameters
input
:
RunInput
Optional
_options
:
any
Returns
Promise
<
ExtractRunOutput
<
AsAgent
>
>
modify
Assistant
modify
Assistant
<
AsAgent
>
(
__namedParameters
)
:
Promise
<
any
>
Modifies an assistant.
Type Parameters
AsAgent
extends
boolean
Parameters
__namedParameters
:
Omit
<
OpenAIAssistantRunnableInput
<
AsAgent
>
,
"assistantId"
|
"tools"
>
&
{
fileIds
?:
string
[]
;
instructions
?:
string
;
model
?:
string
;
name
?:
string
;
}
Returns
Promise
<
any
>
Link
Static
create
Assistant
create
Assistant
<
AsAgent
>
(
__namedParameters
)
:
Promise
<
OpenAIAssistantRunnable
<
AsAgent
,
Record
<
string
,
any
>
>
>
Type Parameters
AsAgent
extends
boolean
Parameters
__namedParameters
:
Omit
<
OpenAIAssistantRunnableInput
<
AsAgent
>
,
"assistantId"
>
&
{
model
:
string
;
fileIds
?:
string
[]
;
instructions
?:
string
;
name
?:
string
;
tools
?:
OpenAIToolType
|
StructuredTool
[]
;
}
Returns
Promise
<
OpenAIAssistantRunnable
<
AsAgent
,
Record
<
string
,
any
>
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
assistant
Id
poll
Interval
Ms
as
Agent
Methods
delete
Assistant
get
Assistant
invoke
modify
Assistant
create
Assistant
LangChain.js - v0.2.10
Loading...
Delete an assistant.