From c02ed5ee278fee136946e9fb84abfdd8ba69177e Mon Sep 17 00:00:00 2001 From: Jiaqi Liu <1166162+0x7c13@users.noreply.github.com> Date: Tue, 27 Jan 2026 23:29:31 +0800 Subject: [PATCH] Update README to use latest agent creation API Update README to use latest agent creation API BaseClient.create_agent() => .as_agent() --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.", )