ToolDetail.ToolMethodDetail

public final class ToolDetail.ToolMethodDetail


Details of a single tool method.

Summary

Public constructors

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

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.ToolParameterDetailgetParameters()

List of parameters for the tool method.

getReturnType

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

The return type of the tool method.