Skip to content

Python: Bug: AzureAIInferencePromptExecutionSettings does not support response_format #11025

Description

@ankitbko

Describe the bug
I am transitioning to AI Inference SDK and realized response_format is currently not supported in AzureAIInferencePromptExecutionSettings. Can we get this added please?

ine 57, in __init__
    settings.response_format = SelectedAgent
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ankit.sinha/projects/agentic-sandbox/fastapi-agents/.venv/lib/python3.12/site-packages/pydantic/main.py", line 922, in __setattr__
    self.__pydantic_validator__.validate_assignment(self, name, value)
pydantic_core._pydantic_core.ValidationError: 1 validation error for AzureAIInferenceChatPromptExecutionSettings
response_format

  Object has no attribute 'response_format' [type=no_such_attribute, input_value=<class 'app.agents.princi...ed_agent.SelectedAgent'>, input_type=ModelMetaclass]
 

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpythonPull requests for the Python Semantic Kernel

Type

Fields

No fields configured for Bug.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions