@@ -62,14 +62,17 @@ type AssistantToolResource struct {
62
62
// If Tools is empty slice it will effectively delete all of the Assistant's tools.
63
63
// If Tools is populated, it will replace all of the existing Assistant's tools with the provided tools.
64
64
type AssistantRequest struct {
65
- Model string `json:"model"`
66
- Name * string `json:"name,omitempty"`
67
- Description * string `json:"description,omitempty"`
68
- Instructions * string `json:"instructions,omitempty"`
69
- Tools []AssistantTool `json:"-"`
70
- FileIDs []string `json:"file_ids,omitempty"`
71
- Metadata map [string ]any `json:"metadata,omitempty"`
72
- ToolResources * AssistantToolResource `json:"tool_resources,omitempty"`
65
+ Model string `json:"model"`
66
+ Name * string `json:"name,omitempty"`
67
+ Description * string `json:"description,omitempty"`
68
+ Instructions * string `json:"instructions,omitempty"`
69
+ Tools []AssistantTool `json:"-"`
70
+ FileIDs []string `json:"file_ids,omitempty"`
71
+ Metadata map [string ]any `json:"metadata,omitempty"`
72
+ ToolResources * AssistantToolResource `json:"tool_resources,omitempty"`
73
+ ResponseFormat any `json:"response_format,omitempty"`
74
+ Temperature * float32 `json:"temperature,omitempty"`
75
+ TopP * float32 `json:"top_p,omitempty"`
73
76
}
74
77
75
78
// MarshalJSON provides a custom marshaller for the assistant request to handle the API use cases
0 commit comments