Skip to content

GoogleToolResultPart

Namespace: Vercel.AI.Google

public sealed class GoogleToolResultPart

One tool result.

Inheritance: object

View source

public GoogleToolResultPart(string toolName)

Creates a tool result.

Parameters

Name Type Description
toolName string

View source

public IReadOnlyList<GoogleToolContentPart>? Content { get; set; }

Multimodal content parts when OutputKind is content.

Value: IReadOnlyList<GoogleToolContentPart>

View source

public string? DenialReason { get; set; }

Reason a tool call was denied.

Value: string

View source

public string? Output { get; set; }

JSON or text payload.

Value: string

View source

public string OutputKind { get; set; }

json, text, content, error-text, error-json, or execution-denied. The last three are sent on response.error.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }

Provider options keyed by namespace.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public string? ToolCallId { get; set; }

Matching tool-call id.

Value: string

View source

public string ToolName { get; }

Tool name.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product