Package com.embabel.agent.api.common
Class PromptRunnerImageExtensionsKt
-
- All Implemented Interfaces:
public final class PromptRunnerImageExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static MultimodalContentBuildermultimodal(String text)Create multimodal content builder with initial text final static MultimodalContentmultimodal(String text, AgentImage image)Create multimodal content with text and a single image final static MultimodalContentmultimodal(String text, File imageFile)Create multimodal content with text and image file final static MultimodalContentmultimodal(String text, Path imagePath)Create multimodal content with text and image path final static PromptRunnerwithImage(PromptRunner $self, File file)Add an image from a file final static PromptRunnerwithImage(PromptRunner $self, Path path)Add an image from a path final static PromptRunnerwithImage(PromptRunner $self, String mimeType, ByteArray data)Add an image with explicit MIME type and data -
-
Method Detail
-
multimodal
final static MultimodalContentBuilder multimodal(String text)
Create multimodal content builder with initial text
-
multimodal
final static MultimodalContent multimodal(String text, AgentImage image)
Create multimodal content with text and a single image
-
multimodal
final static MultimodalContent multimodal(String text, File imageFile)
Create multimodal content with text and image file
-
multimodal
final static MultimodalContent multimodal(String text, Path imagePath)
Create multimodal content with text and image path
-
withImage
final static PromptRunner withImage(PromptRunner $self, File file)
Add an image from a file
-
withImage
final static PromptRunner withImage(PromptRunner $self, Path path)
Add an image from a path
-
withImage
final static PromptRunner withImage(PromptRunner $self, String mimeType, ByteArray data)
Add an image with explicit MIME type and data
-
-
-
-