class ActiveGenie::Clients::GoogleClient

def output_as_json_schema(function_schema)

def output_as_json_schema(function_schema)
  json_instruction = <<~PROMPT
    Generate a JSON object that strictly adheres to the following JSON schema:
    ```json
    #{JSON.pretty_generate(function_schema[:parameters])}
    ```
    IMPORTANT: Only output the raw JSON object. Do not include any other text, explanations, or markdown formatting like ```json ... ``` wrappers around the final output.
  PROMPT
  {
    role: 'user',
    parts: [{ text: json_instruction }]
  }
end