Skip to content

Commit

Permalink
feat(runs): add additionalInstructions property to RunRequest (#293)
Browse files Browse the repository at this point in the history
Co-authored-by: ahmedharis994 <haris.mirza@10Pearls.com>
  • Loading branch information
ahmedmirza994 and ahmedharis994 authored Jan 10, 2024
1 parent 1b034a9 commit d84b2a5
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ public data class RunRequest(
*/
@SerialName("instructions") val instructions: String? = null,

/**
* Appends 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.
*/
@SerialName("additional_instructions") val additionalInstructions: String? = null,

/**
* Override the tools the assistant can use for this run.
* This is useful for modifying the behavior on a per-run basis.
Expand Down Expand Up @@ -74,6 +80,12 @@ public class RunRequestBuilder {
*/
public var instructions: String? = null

/**
* Appends 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.
*/
public var additionalInstructions: String? = null,

/**
* Override the tools the assistant can use for this run.
* This is useful for modifying the behavior on a per-run basis.
Expand All @@ -94,6 +106,7 @@ public class RunRequestBuilder {
assistantId = requireNotNull(assistantId) { "assistantId is required" },
model = model,
instructions = instructions,
additionalInstructions = additionalInstructions,
tools = tools,
metadata = metadata,
)
Expand Down

0 comments on commit d84b2a5

Please sign in to comment.