feat: Add "instructions" support to responses API (#2205)

# What does this PR do?
Add support for "instructions" to the responses API. Instructions
provide a way to swap out system (or developer) messages in new
responses.


## Test Plan
unit tests added

Signed-off-by: Derek Higgins <derekh@redhat.com>
This commit is contained in:
Derek Higgins 2025-05-20 17:52:10 +01:00 committed by GitHub
parent 1a770cf8ac
commit 3339844fda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 153 additions and 1 deletions

View file

@ -596,6 +596,7 @@ class Agents(Protocol):
self,
input: str | list[OpenAIResponseInput],
model: str,
instructions: str | None = None,
previous_response_id: str | None = None,
store: bool | None = True,
stream: bool | None = False,