Skip to content

Commit

Permalink
Add RunRequest field AdditionalInstructions (#656)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrbsg committed Feb 15, 2024
1 parent 66bae3e commit ff61bbb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ const (
)

type RunRequest struct {
AssistantID string `json:"assistant_id"`
Model *string `json:"model,omitempty"`
Instructions *string `json:"instructions,omitempty"`
Tools []Tool `json:"tools,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
AssistantID string `json:"assistant_id"`
Model string `json:"model,omitempty"`
Instructions string `json:"instructions,omitempty"`
AdditionalInstructions string `json:"additional_instructions,omitempty"`
Tools []Tool `json:"tools,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
}

type RunModifyRequest struct {
Expand Down

0 comments on commit ff61bbb

Please sign in to comment.