GooglePreparedRequest
Namespace: Vercel.AI.Google
public sealed class GooglePreparedRequestA generateContent request body plus the warnings and extra headers that go with it.
Inheritance: object
Constructors
Section titled “Constructors”GooglePreparedRequest(JsonObject, IReadOnlyList<GoogleWarning>, IReadOnlyDictionary<string, string?>, GoogleToolPreparation, string?)
Section titled “GooglePreparedRequest(JsonObject, IReadOnlyList<GoogleWarning>, IReadOnlyDictionary<string, string?>, GoogleToolPreparation, string?)”public GooglePreparedRequest(JsonObject body, IReadOnlyList<GoogleWarning> warnings, IReadOnlyDictionary<string, string?> extraHeaders, GoogleToolPreparation tools, string? jsonResponseToolName = null)Creates a prepared request.
Parameters
| Name | Type | Description |
|---|---|---|
body |
JsonObject | |
warnings |
IReadOnlyList<GoogleWarning> | |
extraHeaders |
IReadOnlyDictionary<string, string> | |
tools |
GoogleToolPreparation | |
jsonResponseToolName |
string |
Properties
Section titled “Properties”public JsonObject Body { get; }Request JSON.
Value: JsonObject
ExtraHeaders
Section titled “ExtraHeaders”public IReadOnlyDictionary<string, string?> ExtraHeaders { get; }Headers added for this call, such as Vertex pay-as-you-go request types.
Value: IReadOnlyDictionary<string, string>
JsonResponseToolName
Section titled “JsonResponseToolName”public string? JsonResponseToolName { get; }Name of the internal tool that carries structured output, or null when the request uses native JSON formatting.
Value: string
public GoogleToolPreparation Tools { get; }Prepared tools, including built-in name mapping.
Value: GoogleToolPreparation
Warnings
Section titled “Warnings”public IReadOnlyList<GoogleWarning> Warnings { get; }Preparation warnings.
Value: IReadOnlyList<GoogleWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product