Skip to content

Commit d84b2a5

Browse files
feat(runs): add additionalInstructions property to RunRequest (#293)
Co-authored-by: ahmedharis994 <haris.mirza@10Pearls.com>
1 parent 1b034a9 commit d84b2a5

File tree

1 file changed

+13
-0
lines changed
  • openai-core/src/commonMain/kotlin/com.aallam.openai.api/run

1 file changed

+13
-0
lines changed

openai-core/src/commonMain/kotlin/com.aallam.openai.api/run/RunRequest.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ public data class RunRequest(
3030
*/
3131
@SerialName("instructions") val instructions: String? = null,
3232

33+
/**
34+
* Appends additional instructions at the end of the instructions for the run.
35+
* This is useful for modifying the behavior on a per-run basis without overriding other instructions.
36+
*/
37+
@SerialName("additional_instructions") val additionalInstructions: String? = null,
38+
3339
/**
3440
* Override the tools the assistant can use for this run.
3541
* This is useful for modifying the behavior on a per-run basis.
@@ -74,6 +80,12 @@ public class RunRequestBuilder {
7480
*/
7581
public var instructions: String? = null
7682

83+
/**
84+
* Appends additional instructions at the end of the instructions for the run.
85+
* This is useful for modifying the behavior on a per-run basis without overriding other instructions.
86+
*/
87+
public var additionalInstructions: String? = null,
88+
7789
/**
7890
* Override the tools the assistant can use for this run.
7991
* This is useful for modifying the behavior on a per-run basis.
@@ -94,6 +106,7 @@ public class RunRequestBuilder {
94106
assistantId = requireNotNull(assistantId) { "assistantId is required" },
95107
model = model,
96108
instructions = instructions,
109+
additionalInstructions = additionalInstructions,
97110
tools = tools,
98111
metadata = metadata,
99112
)

0 commit comments

Comments
 (0)