Kizuki
HTTP API
GitHub
Preparing search index...
lib/model
Ask
Type Alias Ask
Ask
:
<
T
>
(
request
:
{
prompt
:
string
;
schema
:
z.ZodType
<
T
>
;
system
:
string
}
,
)
=>
Promise
<
T
>
A function that asks the answer model for a reply in a fixed shape. Tests pass a fake one.
Type Declaration
<
T
>
(
request
:
{
prompt
:
string
;
schema
:
z.ZodType
<
T
>
;
system
:
string
}
,
)
:
Promise
<
T
>
Type Parameters
T
Parameters
request
:
{
prompt
:
string
;
schema
:
z.ZodType
<
T
>
;
system
:
string
}
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
HTTP API
GitHub
Kizuki
Loading...
A function that asks the answer model for a reply in a fixed shape. Tests pass a fake one.