From b5934783a711929fab428c8b48ec1a742f2974ee Mon Sep 17 00:00:00 2001 From: James Hush Date: Thu, 20 Feb 2025 15:12:12 +0800 Subject: [PATCH] Update comment --- examples/foundational/14-function-calling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/foundational/14-function-calling.py b/examples/foundational/14-function-calling.py index de5fd1651..acfcee83f 100644 --- a/examples/foundational/14-function-calling.py +++ b/examples/foundational/14-function-calling.py @@ -31,13 +31,13 @@ logger.add(sys.stderr, level="DEBUG") async def start_fetch_products(function_name, llm, context): """Push a frame to the LLM; this is handy when the LLM response might take a while.""" - await llm.push_frame(TTSSpeakFrame("Let me check on that.")) + await llm.push_frame(TTSSpeakFrame("I'll take a look!")) logger.debug(f"Starting fetch_products_from_api with function_name: {function_name}") async def fetch_products_from_api(function_name, tool_call_id, args, llm, context, result_callback): logger.debug(f"args for fetch_products_from_api: {args}") - #'product': 'vacuums' + # In the real world you'd fetch the products from an API. We're hardcoding them here. product = args["product"] if product == "vacuums": await result_callback({"vacuums": ["Dyson V11", "Roomba i7"]})