UserModelMessage
Namespace: Vercel.AI.Provider
public sealed class UserModelMessage : ModelMessageA user message.
Inheritance: object → ModelMessage
Constructors
Section titled “Constructors”UserModelMessage(IReadOnlyList<UserContentPart>)
Section titled “UserModelMessage(IReadOnlyList<UserContentPart>)”public UserModelMessage(IReadOnlyList<UserContentPart> content)Creates a user message from parts.
Parameters
| Name | Type | Description |
|---|---|---|
content |
IReadOnlyList<UserContentPart> |
UserModelMessage(string)
Section titled “UserModelMessage(string)”public UserModelMessage(string text)Creates a user message from text.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Properties
Section titled “Properties”Content
Section titled “Content”public IReadOnlyList<UserContentPart> Content { get; }User content parts.
Value: IReadOnlyList<UserContentPart>
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }Provider-specific options for this message, such as an Amazon Bedrock cachePoint.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product