From ff61bbb32253aad84c6cc96bf9be3884aa8cde88 Mon Sep 17 00:00:00 2001 From: chrbsg <52408325+chrbsg@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:12:22 +0000 Subject: [PATCH] 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. --- run.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/run.go b/run.go index ba09366..1f3cb7e 100644 --- a/run.go +++ b/run.go @@ -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 {