ModelOptionsSerialization
Namespace: Vercel.AI.ProviderUtils
public static class ModelOptionsSerializationSerializes model options for a workflow boundary. Maps to serializeModelOptions.
Inheritance: object
Methods
Section titled “Methods”SerializeModelOptions(string, IReadOnlyDictionary<string, object?>)
Section titled “SerializeModelOptions(string, IReadOnlyDictionary<string, object?>)”public static SerializedModelOptions SerializeModelOptions(string modelId, IReadOnlyDictionary<string, object?> config)Copies JSON-serializable config values. A function-valued headers entry is invoked.
Asynchronous headers throw SerializationError.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string | |
config |
IReadOnlyDictionary<string, object> |
Returns: SerializedModelOptions
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product