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.
This commit is contained in:
chrbsg
2024-02-15 16:12:22 +00:00
committed by GitHub
parent 66bae3ee73
commit ff61bbb322

11
run.go
View File

@@ -72,11 +72,12 @@ const (
) )
type RunRequest struct { type RunRequest struct {
AssistantID string `json:"assistant_id"` AssistantID string `json:"assistant_id"`
Model *string `json:"model,omitempty"` Model string `json:"model,omitempty"`
Instructions *string `json:"instructions,omitempty"` Instructions string `json:"instructions,omitempty"`
Tools []Tool `json:"tools,omitempty"` AdditionalInstructions string `json:"additional_instructions,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"` Tools []Tool `json:"tools,omitempty"`
Metadata map[string]any `json:"metadata,omitempty"`
} }
type RunModifyRequest struct { type RunModifyRequest struct {