forked from bincooo/claude-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
40 lines (31 loc) · 629 Bytes
/
types.go
File metadata and controls
40 lines (31 loc) · 629 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
35
36
37
38
39
40
package claude
import "time"
type Chat struct {
*Options
//Channel string
//conversationId string
}
type Options struct {
Token string
Retry int
BotId string
Channel string
PollTime time.Duration
Timeout time.Duration
}
type ResponseClaude struct {
Ok bool `json:"ok"`
Error string `json:"error"`
}
type RepliesResponse struct {
ResponseClaude
Messages []PartialResponse `json:"messages"`
}
type PartialResponse struct {
Error error `json:"-"`
Text string `json:"text"`
BotId string `json:"bot_id"`
Metadata struct {
EventType string `json:"event_type"`
} `json:"metadata"`
}