-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
34 lines (28 loc) · 881 Bytes
/
Copy pathtypes.go
File metadata and controls
34 lines (28 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
type Option struct {
Label string `json:"label"`
Description string `json:"description,omitempty"`
Recommended bool `json:"recommended,omitempty"`
}
type Question struct {
Title string `json:"title"`
Description string `json:"description,omitempty"`
Options []Option `json:"options"`
MultiSelect bool `json:"multiSelect,omitempty"`
AllowCustom *bool `json:"allowCustom,omitempty"`
}
type AskQuestionsInput struct {
Questions []Question `json:"questions" jsonschema:"Questions to present to the user"`
}
type Session struct {
ID string `json:"id"`
Questions []Question `json:"questions"`
}
type QuestionAnswer struct {
Question string `json:"question"`
Choices []string `json:"choices"`
Custom string `json:"custom,omitempty"`
}
type SessionAnswer struct {
Answers []QuestionAnswer `json:"answers"`
}