kodeagent.tools.generate_image#

kodeagent.tools.generate_image(prompt: str, model_name: str) str[source]#

Generate an image based on a text prompt using the specified model. It returns the image URL or the file path of the generated image.

Parameters:
  • prompt – Text description of the desired image.

  • model_name – The name of the image generation model to use.

Returns:

The file path or URL of the generated image or error message.