Skip to content

GoogleInteractionsFinish

Namespace: Vercel.AI.Google

public static class GoogleInteractionsFinish

Maps an Interactions API status onto a finish reason.

Inheritance: object

View source

public static FinishReason Map(string? status, bool hasFunctionCall)

completed is a tool call when the response contains a client function call. requires_action is always a tool call.

Parameters

Name Type Description
status string
hasFunctionCall bool

Returns: FinishReason

View source

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