price = await tools.get_stock_price(ticker) prompt = f"Create a stock analysis report for {ticker}. The current price is ${price:.2f}." client = genai.Client() response = client.models.generate_content( model="gemini-2.5-flash", contents=prompt, config={ "response_mime_type" : "application/json", "response_schema" : StockReport, } ) obj: StockReport = response.parsed