Skip to content

Python: Sample not working #4491

@lisngt

Description

@lisngt

Hi everyone,

This sample is not working

https://github.com/microsoft/agent-framework/blob/main/python/samples/02-agents/chat_client/chat_response_cancellation.py

Please fix it. Line 31 doesn't work.

Suggestion:

task = asyncio.create_task(client.get_response(messages=[Message(role="user", text="Tell me a fantasy story.")]))

Thank you.
Regard

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions