You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior send_email_async will be called as that is needed for user query in the sample
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The problem can be avoided if I add following docstrings to the send_email_async method
asyncdefsend_email_async(recipient: str, subject: str, body: str) ->str:
""" Sends an email with the specified subject and body to the recipient. :param recipient (str): Email address of the recipient. :param subject (str): Subject of the email. :param body (str): Body content of the email. :return: Confirmation message. :rtype: str """awaitasyncio.sleep(1)
returnsend_email(recipient, subject, body)
After that agent will know more details about the function and knows to call it successfully.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I run this sample https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_stream_eventhandler_with_functions_async.py, the
send_email_async
is not called.To Reproduce
Steps to reproduce the behavior:
Expected behavior
send_email_async
will be called as that is needed for user query in the sampleScreenshots
If applicable, add screenshots to help explain your problem.
Additional context
The problem can be avoided if I add following docstrings to the
send_email_async
methodAfter that agent will know more details about the function and knows to call it successfully.
The text was updated successfully, but these errors were encountered: