Generate Image • AI Agent SDK

generate_image: Generate an image based on the provided prompt.

generate_image

Method

</div>

This is a method of the ImageAgent class in the image_agent module.

Generate an image based on the provided prompt.

Signature

python
def generate_image(prompt: str) -> Dict[str, Any]

Parameters

ParamField str

No description available.

Returns

ResponseField Dict[str, Any]

The result of the operation.

Uses

  • litellm.get_llm_provider
  • logging.debug
  • Progress
  • SpinnerColumn
  • TextColumn
  • progress.add_task
  • litellm
  • logging.error

Used By

Source

View on GitHub

praisonaiagents/agent/image_agent.py at line 138


Related Documentation