Skip to content

Python: [Python] Workflow not support Response API with gpt-5-mini in Azure AI Foundry Agent Service #1429

@kinfey

Description

@kinfey

I try to update gpt-5-mini in Azure AI Foundry Agent service, I can run each agent , but when I add these agents with workflow, it give this error


HttpResponseError Traceback (most recent call last)
Cell In[12], line 8
2 async with (
3 AzureCliCredential() as credential,
4 AIProjectClient(endpoint=os.environ["AZURE_AI_PROJECT_ENDPOINT"], credential=credential) as client,
5 ):
6 try:
7 # Create agents
----> 8 evangelist_created_agent = await client.agents.create_agent(
9 model=os.environ["AZURE_AI_MODEL_DEPLOYMENT_NAME"],
10 instructions=EvangelistInstructions,
11 name="Evangelist",
12 tools=bing.definitions
13 )
15 reviewer_created_agent = await client.agents.create_agent(
16 model=os.environ["AZURE_AI_MODEL_DEPLOYMENT_NAME"],
17 instructions=ContentReviewerInstructions,
18 name="ContentReviewer"
19 )
21 publisher_created_agent = await client.agents.create_agent(
22 model=os.environ["AZURE_AI_MODEL_DEPLOYMENT_NAME"],
23 instructions=PublisherInstructions,
24 name="Publisher",
25 tools=code_interpreter.definitions
26 )

File c:\Users\kinfeylo\AppData\Local\miniforge3\envs\agentenv\Lib\site-packages\azure\core\tracing\decorator_async.py:119, in distributed_trace_async..decorator..wrapper_use_tracer(*args, **kwargs)
117 # If tracing is disabled globally and user didn't explicitly enable it, don't trace.
118 if user_enabled is False or (not tracing_enabled and user_enabled is None):
--> 119 return await func(*args, **kwargs)
121 # Merge span is parameter is set, but only if no explicit parent are passed
122 if merge_span and not passed_in_parent:

File c:\Users\kinfeylo\AppData\Local\miniforge3\envs\agentenv\Lib\site-packages\azure\ai\agents\aio_patch.py:322, in AgentsClient.create_agent(self, body, model, name, description, instructions, tools, tool_resources, toolset, temperature, top_p, response_format, metadata, content_type, **kwargs)
319 tools = toolset.definitions
320 tool_resources = toolset.resources
--> 322 new_agent = await super().create_agent(
323 model=model,
324 name=name,
325 description=description,
326 instructions=instructions,
327 tools=tools,
328 tool_resources=tool_resources,
329 temperature=temperature,
330 top_p=top_p,
331 response_format=response_format,
332 metadata=metadata,
333 **kwargs,
334 )
336 return new_agent

File c:\Users\kinfeylo\AppData\Local\miniforge3\envs\agentenv\Lib\site-packages\azure\core\tracing\decorator_async.py:119, in distributed_trace_async..decorator..wrapper_use_tracer(*args, **kwargs)
117 # If tracing is disabled globally and user didn't explicitly enable it, don't trace.
118 if user_enabled is False or (not tracing_enabled and user_enabled is None):
--> 119 return await func(*args, **kwargs)
121 # Merge span is parameter is set, but only if no explicit parent are passed
122 if merge_span and not passed_in_parent:

File c:\Users\kinfeylo\AppData\Local\miniforge3\envs\agentenv\Lib\site-packages\azure\ai\agents\aio\operations_operations.py:4292, in _AgentsClientOperationsMixin.create_agent(self, body, model, name, description, instructions, tools, tool_resources, temperature, top_p, response_format, metadata, **kwargs)
4290 map_error(status_code=response.status_code, response=response, error_map=error_map)
4291 error = _failsafe_deserialize(_models.AgentV1Error, response)
-> 4292 raise HttpResponseError(response=response, model=error)
4294 if _stream:
4295 deserialized = response.iter_bytes()

HttpResponseError: (unsupported_model) The model 'gpt-5-mini' cannot be used with the following tools: bing_grounding. This model only supports Responses API compatible tools.
Code: unsupported_model
Message: The model 'gpt-5-mini' cannot be used with the following tools: bing_grounding. This model only supports Responses API compatible tools.

My code is here

python-agent-framework-workflow-aifoundry-condition.ipynb

Metadata

Metadata

Assignees

Labels

pythonworkflowsRelated to Workflows in agent-framework

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions