diff --git a/README.md b/README.md index 64b0dbd821..f0c98532b2 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ async def main(): # api_version=os.environ["AZURE_OPENAI_API_VERSION"], # api_key=os.environ["AZURE_OPENAI_API_KEY"], # Optional if using AzureCliCredential credential=AzureCliCredential(), # Optional, if using api_key - ).create_agent( + ).as_agent( name="HaikuBot", instructions="You are an upbeat assistant that writes beautifully.", )