FunctionCallPart

public final class FunctionCallPart extends Part


A data class representing a function call part of a prompt.

Used in multi-turn conversation history to represent a function/tool call predicted by the model.

Summary

Nested types

public static class FunctionCallPart.Companion

Public constructors

Public methods

final @NonNull FunctionCall

the function call content.

Public constructors

FunctionCallPart

public FunctionCallPart(@NonNull FunctionCall functionCall)

Public methods

getFunctionCall

public final @NonNull FunctionCall getFunctionCall()

the function call content.