Skip to content

Commit ff61bbb

Browse files
authored
Add RunRequest field AdditionalInstructions (#656)
AdditionalInstructions is an optional string field used to append additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions. Also, change the Model and Instructions *string fields to string.
1 parent 66bae3e commit ff61bbb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

run.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ const (
7272
)
7373

7474
type RunRequest struct {
75-
AssistantID string `json:"assistant_id"`
76-
Model *string `json:"model,omitempty"`
77-
Instructions *string `json:"instructions,omitempty"`
78-
Tools []Tool `json:"tools,omitempty"`
79-
Metadata map[string]any `json:"metadata,omitempty"`
75+
AssistantID string `json:"assistant_id"`
76+
Model string `json:"model,omitempty"`
77+
Instructions string `json:"instructions,omitempty"`
78+
AdditionalInstructions string `json:"additional_instructions,omitempty"`
79+
Tools []Tool `json:"tools,omitempty"`
80+
Metadata map[string]any `json:"metadata,omitempty"`
8081
}
8182

8283
type RunModifyRequest struct {

0 commit comments

Comments
 (0)