UNPKG
@statelyai/agent
Version:
beta (1.0.0-beta.1)
latest (1.1.6)
next (2.0.0-next.5)
2.0.0-next.5
2.0.0-next.4
2.0.0-next.3
2.0.0-next.2
2.0.0-next.1
2.0.0-next.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.0.0
1.0.0-beta.1
1.0.0-beta.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Stateful agents that make decisions based on finite-state machine models
@statelyai/agent
/
src
/
schemas.ts
12 lines
(9 loc)
•
265 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
ZodType
,
type
SomeZodObject
}
from
'zod'
;
export
type
ZodEventMapping
= {
// map event types to Zod types
[
eventType
:
string
]:
SomeZodObject
; };
export
type
ZodContextMapping
= {
// map context keys to Zod types
[
contextKey
:
string
]:
ZodType
; };