diff --git a/python/samples/semantic-kernel-migration/openai_responses/01_basic_responses_agent.py b/python/samples/semantic-kernel-migration/openai_responses/01_basic_responses_agent.py index 37f002ef22..d74487d1e8 100644 --- a/python/samples/semantic-kernel-migration/openai_responses/01_basic_responses_agent.py +++ b/python/samples/semantic-kernel-migration/openai_responses/01_basic_responses_agent.py @@ -23,12 +23,12 @@ async def run_semantic_kernel() -> None: from semantic_kernel.connectors.ai.open_ai import OpenAISettings openai_settings = OpenAISettings() - assert openai_settings.responses_model is not None, "Responses model ID must be set in OpenAISettings" + assert openai_settings.responses_model_id is not None, "Responses model ID must be set in OpenAISettings" client = OpenAIResponsesAgent.create_client() # SK response agents wrap OpenAI's hosted Responses API. agent = OpenAIResponsesAgent( - ai_model=openai_settings.responses_model, + ai_model_id=openai_settings.responses_model_id, client=client, instructions="Answer in one concise sentence.", name="Expert", diff --git a/python/samples/semantic-kernel-migration/openai_responses/02_responses_agent_with_tool.py b/python/samples/semantic-kernel-migration/openai_responses/02_responses_agent_with_tool.py index 306aa68a23..01b783aff9 100644 --- a/python/samples/semantic-kernel-migration/openai_responses/02_responses_agent_with_tool.py +++ b/python/samples/semantic-kernel-migration/openai_responses/02_responses_agent_with_tool.py @@ -29,12 +29,12 @@ async def run_semantic_kernel() -> None: return a + b openai_settings = OpenAISettings() - assert openai_settings.responses_model is not None, "Responses model ID must be set in OpenAISettings" + assert openai_settings.responses_model_id is not None, "Responses model ID must be set in OpenAISettings" client = OpenAIResponsesAgent.create_client() # Plugins advertise callable tools to the Responses agent. agent = OpenAIResponsesAgent( - ai_model=openai_settings.responses_model, + ai_model_id=openai_settings.responses_model_id, client=client, instructions="Use the add tool when math is required.", name="MathExpert", diff --git a/python/samples/semantic-kernel-migration/openai_responses/03_responses_agent_structured_output.py b/python/samples/semantic-kernel-migration/openai_responses/03_responses_agent_structured_output.py index 133d3b079c..cbfbf470a0 100644 --- a/python/samples/semantic-kernel-migration/openai_responses/03_responses_agent_structured_output.py +++ b/python/samples/semantic-kernel-migration/openai_responses/03_responses_agent_structured_output.py @@ -30,12 +30,12 @@ async def run_semantic_kernel() -> None: from semantic_kernel.connectors.ai.open_ai import OpenAISettings openai_settings = OpenAISettings() - assert openai_settings.responses_model is not None, "Responses model ID must be set in OpenAISettings" + assert openai_settings.responses_model_id is not None, "Responses model ID must be set in OpenAISettings" client = OpenAIResponsesAgent.create_client() # response_format requests schema-constrained output from the model. agent = OpenAIResponsesAgent( - ai_model=openai_settings.responses_model, + ai_model_id=openai_settings.responses_model_id, client=client, instructions="Return launch briefs as structured JSON.", name="ProductMarketer",