Skip to content

Python: tools removed when using client.get_streaming_response #2882

@cecheta

Description

@cecheta

I was following the example azure_ai_chat_client_with_observability.py and noticed that for the first question, there was no function call. It seems like tool_choice="auto" must be explicitly set, otherwise the tools are removed from the request to the model.

If you use non-streaming, or if you use client.create_agent().run_stream(), then the tools are still passed to the agent.

Metadata

Metadata

Labels

agentsIssues related to single agentspython

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions