mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Fix AzureAIClient dropping agent instructions (Responses API) (#3636)
This commit is contained in:
@@ -352,9 +352,10 @@ class AzureAIClient(OpenAIBaseResponsesClient[TAzureAIClientOptions], Generic[TA
|
||||
args["text"] = PromptAgentDefinitionText(format=create_text_format_config(response_format))
|
||||
|
||||
# Combine instructions from messages and options
|
||||
# instructions is accessed from chat_options since the base class excludes it from run_options
|
||||
combined_instructions = [
|
||||
instructions
|
||||
for instructions in [messages_instructions, run_options.get("instructions")]
|
||||
for instructions in [messages_instructions, chat_options.get("instructions") if chat_options else None]
|
||||
if instructions
|
||||
]
|
||||
if combined_instructions:
|
||||
|
||||
Reference in New Issue
Block a user