Skip to main content

hosted_image_generation

Function hosted_image_generation 

Source
pub fn hosted_image_generation() -> ToolDefinition
Expand description

Construct a hosted image-generation tool marker.

Supported by services that expose server-side image generation as a tool (e.g. the OpenAI Responses API’s image_generation tool). Its results surface as Content::ImageGenerationToolResult.