UNPKG
genpower
Version:
latest (1.1.0)
1.1.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
Unified TypeScript library to generate, validate, and structure AI model outputs
genpower
/
dist
/
types
/
promptBuilder.d.ts
10 lines
(9 loc)
•
301 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
ZodType
}
from
"zod"
;
interface
PromptOptions
{
includeObjective
?:
boolean
;
includeInstruction
?:
boolean
;
includeOutput
?:
boolean
;
includeExample
?:
boolean
; }
export
declare
function
generatePromptFromSchema<T>(
schema
:
ZodType
<T>,
options
?:
PromptOptions
):
string
;
export
{};