A programming framework for agentic AI
fix use case in website (#1108)
Eric Zhua9483a492c40
diff --git a/website/docs/Use-Cases/agent_chat.md b/website/docs/Use-Cases/agent_chat.mdindex d41ae9e83..7e4e0ffe9 100644--- a/website/docs/Use-Cases/agent_chat.md+++ b/website/docs/Use-Cases/agent_chat.md@@ -55,18 +55,18 @@ or Pydantic models:The following examples illustrates the process of registering a custom function for currency exchange calculation that uses type hints and standard Python datatypes:``` python-from typying import Literal+from typing import Literalfrom typing_extensions import Annotatedfrom somewhere import exchange_rate-# the agents are instances of UserProxyAgent and AssistantAgent-from myagents import agent, user_proxy+# the agents are instances of AssistantAgent and UserProxyAgent+from myagents import chatbot, user_proxyCurrencySymbol = Literal["USD", "EUR"]# registers the function for execution (updates function map)@user_proxy.register_for_execution()# creates JSON schema from type hints and registers the function to llm_config[email protected]_for_llm(description="Currency exchange calculator.")[email protected]_for_llm(description="Currency exchange calculator.")# python function with type hintsdef currency_calculator(# Annotated type is used for attaching description to the parameter@@ -138,11 +138,11 @@ encoded string automatically.The following example shows how we could rewrite our currency exchange calculator example:``` python-from typying import Literal+from typing import Literalfrom typing_extensions import Annotatedfrom pydantic import BaseModel, Fieldfrom somewhere import exchange_rate-from myagents import agent, user_proxy+from myagents import chatbot, user_proxy# defines a Pydantic modelclass Currency(BaseModel):