Fixing ruff format

This commit is contained in:
Filipi Fuchter
2025-01-10 13:21:51 -03:00
parent 6719d1fddc
commit aa1b8879ee

View File

@@ -30,10 +30,8 @@ logger.remove(0)
logger.add(sys.stderr, level="DEBUG") logger.add(sys.stderr, level="DEBUG")
# Function handlers for the LLM # Function handlers for the LLM
search_tool = {'google_search': {}} search_tool = {"google_search": {}}
tools = [ tools = [search_tool]
search_tool
]
system_instruction = """ 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. 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( 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) context_aggregator = llm.create_context_aggregator(context)