Cell API
Docs
GitHub
Preparing search index...
@celljs/ai-core
PromptTemplate
Interface PromptTemplate
interface
PromptTemplate
{
create
(
template
:
string
|
Message
[]
,
ctx
?:
PromptTemplateContext
,
)
:
Promise
<
Prompt
>
;
render
(
template
:
string
,
ctx
?:
PromptTemplateContext
)
:
Promise
<
string
>
;
}
Implemented by
ELPromptTemplate
SamplePromptTemplate
Index
Methods
create
render
Methods
create
create
(
template
:
string
|
Message
[]
,
ctx
?:
PromptTemplateContext
,
)
:
Promise
<
Prompt
>
Parameters
template
:
string
|
Message
[]
Optional
ctx
:
PromptTemplateContext
Returns
Promise
<
Prompt
>
render
render
(
template
:
string
,
ctx
?:
PromptTemplateContext
)
:
Promise
<
string
>
Parameters
template
:
string
Optional
ctx
:
PromptTemplateContext
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
render
Docs
GitHub
Cell API
Loading...