File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,25 @@ type ModifyThreadRequest struct {
8383type ThreadMessageRole string
8484
8585const (
86- ThreadMessageRoleUser ThreadMessageRole = "user"
86+ ThreadMessageRoleAssistant ThreadMessageRole = "assistant"
87+ ThreadMessageRoleUser ThreadMessageRole = "user"
8788)
8889
8990type 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"`
94105}
95106
96107type ThreadDeleteResponse struct {
You can’t perform that action at this time.
0 commit comments