FunctionDeclaration

public final class FunctionDeclaration


Represents a tool/function declaration that the model can request to execute.

Summary

Public constructors

FunctionDeclaration(
    @NonNull String name,
    @NonNull String description,
    FunctionSchema parameters,
    FunctionSchema responseSchema
)

Public methods

boolean
equals(Object other)
final @NonNull String

human-readable description of what the tool does

final @NonNull String

the name of the function to call

final FunctionSchema

the schema describing the parameters this function accepts

final FunctionSchema

the schema describing the expected output of this function

int
@NonNull String

Public constructors

FunctionDeclaration

public FunctionDeclaration(
    @NonNull String name,
    @NonNull String description,
    FunctionSchema parameters,
    FunctionSchema responseSchema
)

Public methods

equals

public boolean equals(Object other)

getDescription

public final @NonNull String getDescription()

human-readable description of what the tool does

getName

public final @NonNull String getName()

the name of the function to call

getParameters

public final FunctionSchema getParameters()

the schema describing the parameters this function accepts

getResponseSchema

public final FunctionSchema getResponseSchema()

the schema describing the expected output of this function

hashCode

public int hashCode()

toString

public @NonNull String toString()