2.0.0 (latest) 1.159.0 1.158.0 1.157.0 1.156.0 1.155.0 1.154.0

    Part()

A part of a multi-part Content message.

Usage:

    ```
    text_part = Part.from_text("Why is sky blue?")
    image_part = Part.from_image(Image.load_from_file("image.jpg"))
    video_part = Part.from_uri(uri="gs://.../video.mp4", mime_type="video/mp4")
    function_response_part = Part.from_function_response(
        name="get_current_weather",
        response={
            "content": {"weather_there": "super nice"},
        }
    )

    response1 = model.generate_content([text_part, image_part])
    response2 = model.generate_content(video_part)
    response3 = chat.send_message(function_response_part)
    ```