From aa1b8879ee42dce0b21ecb4eee6da2a0416e9234 Mon Sep 17 00:00:00 2001 From: Filipi Fuchter Date: Fri, 10 Jan 2025 13:21:51 -0300 Subject: [PATCH] Fixing ruff format --- .../26e-gemini-multimodal-google-search.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/foundational/26e-gemini-multimodal-google-search.py b/examples/foundational/26e-gemini-multimodal-google-search.py index 9a555ac5c..84a48d026 100644 --- a/examples/foundational/26e-gemini-multimodal-google-search.py +++ b/examples/foundational/26e-gemini-multimodal-google-search.py @@ -30,10 +30,8 @@ logger.remove(0) logger.add(sys.stderr, level="DEBUG") # Function handlers for the LLM -search_tool = {'google_search': {}} -tools = [ - search_tool -] +search_tool = {"google_search": {}} +tools = [search_tool] system_instruction = """ You are an expert at providing the most recent news from any place. Your responses will be converted to audio, so avoid using special characters or overly complex formatting. @@ -76,7 +74,12 @@ async def main(): ) context = OpenAILLMContext( - [{"role": "user", "content": "Start by greeting the user warmly, introducing yourself, and mentioning the current day. Be friendly and engaging to set a positive tone for the interaction."}], + [ + { + "role": "user", + "content": "Start by greeting the user warmly, introducing yourself, and mentioning the current day. Be friendly and engaging to set a positive tone for the interaction.", + } + ], ) context_aggregator = llm.create_context_aggregator(context)