ImagePrompt
Namespace: Vercel.AI.Operations
public sealed class ImagePromptA string prompt or an image edit prompt.
Inheritance: object
Constructors
Section titled “Constructors”ImagePrompt(string)
Section titled “ImagePrompt(string)”public ImagePrompt(string text)Creates a text prompt.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
ImagePrompt(string?, IReadOnlyList<object?>, object?)
Section titled “ImagePrompt(string?, IReadOnlyList<object?>, object?)”public ImagePrompt(string? text, IReadOnlyList<object?> images, object? mask = null)Creates an edit prompt.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
images |
IReadOnlyList<object> | |
mask |
object |
Properties
Section titled “Properties”HasImages
Section titled “HasImages”public bool HasImages { get; }True when the caller passed the object form.
Value: bool
Images
Section titled “Images”public IReadOnlyList<object?> Images { get; }Reference images when this is an edit prompt.
Value: IReadOnlyList<object>
public object? Mask { get; }Optional mask.
Value: object
public string? Text { get; }Prompt text.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product