chat • AI Agent SDK
chat: Generate an image from the prompt.
chat
Method
</div>
This is a method of the ImageAgent class in the image_agent module.
Generate an image from the prompt.
Signature
def chat(prompt: str) -> Union[ImageResult, Dict[str, Any]]Parameters
ParamField
strNo description available.
Returns
ResponseField
Union[ImageResult, Dict[str, Any]]The result of the operation.
Uses
generate_image
Used By
Agent.chat_with_contextTypedHandoff.execute_programmaticAutoRagAgent.chatAutoRagAgent.achatLLMRuntimeWrapper.execute
Source
View on GitHubpraisonaiagents/agent/image_agent.py at line 232