File tree 1 file changed +16
-5
lines changed
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,25 @@ type ModifyThreadRequest struct {
83
83
type ThreadMessageRole string
84
84
85
85
const (
86
- ThreadMessageRoleUser ThreadMessageRole = "user"
86
+ ThreadMessageRoleAssistant ThreadMessageRole = "assistant"
87
+ ThreadMessageRoleUser ThreadMessageRole = "user"
87
88
)
88
89
89
90
type ThreadMessage struct {
90
- Role ThreadMessageRole `json:"role"`
91
- Content string `json:"content"`
92
- FileIDs []string `json:"file_ids,omitempty"`
93
- Metadata map [string ]any `json:"metadata,omitempty"`
91
+ Role ThreadMessageRole `json:"role"`
92
+ Content string `json:"content"`
93
+ FileIDs []string `json:"file_ids,omitempty"`
94
+ Attachments []ThreadAttachment `json:"attachments,omitempty"`
95
+ Metadata map [string ]any `json:"metadata,omitempty"`
96
+ }
97
+
98
+ type ThreadAttachment struct {
99
+ FileID string `json:"file_id"`
100
+ Tools []ThreadAttachmentTool `json:"tools"`
101
+ }
102
+
103
+ type ThreadAttachmentTool struct {
104
+ Type string `json:"type"`
94
105
}
95
106
96
107
type ThreadDeleteResponse struct {
You can’t perform that action at this time.
0 commit comments