ToolDetail.ToolMethodDetail

Kotlin |Java

public final class ToolDetail.ToolMethodDetail 


Details of a single tool method.

Summary

Public constructors

Public methods

final @NonNull String

Description of what the tool does.

final @NonNull String

The name of the tool method.

final @NonNull List<@NonNull ToolDetail.ToolParameterDetail>

List of parameters for the tool method.

final @NonNull KClass<@NonNull ?>

The return type of the tool method.

Public constructors

ToolMethodDetail

public ToolMethodDetail(
@NonNull String name,
@NonNull String description,
@NonNull List<@NonNull ToolDetail.ToolParameterDetail> parameters,
@NonNull KClass<@NonNull ?> returnType
)

Public methods

getDescription

public final @NonNull String getDescription()

Description of what the tool does.

getName

public final @NonNull String getName()

The name of the tool method.

getParameters

public final @NonNull List<@NonNull ToolDetail.ToolParameterDetail> getParameters()

List of parameters for the tool method.

getReturnType

public final @NonNull KClass<@NonNull ?> getReturnType()

The return type of the tool method.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年07月15日 UTC.