# FunctionDeclaration

# FunctionDeclaration


```
class FunctionDeclaration
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `FunctionDeclaration( name: String, description: String, parameters: FunctionSchema?, responseSchema: FunctionSchema? )` |

| ### Public functions |
|---|---|
| `open operator Boolean` | `equals(other: Any?)` |
| `open Int` | `hashCode()` |
| `open String` | `toString()` |

| ### Public properties |
|---|---|
| `String` | `description` human-readable description of what the tool does |
| `String` | `name` the name of the function to call |
| `FunctionSchema?` | `parameters` the schema describing the parameters this function accepts |
| `FunctionSchema?` | `responseSchema` the schema describing the expected output of this function |

## Public constructors

### FunctionDeclaration

```
FunctionDeclaration(
    name: String,
    description: String,
    parameters: FunctionSchema? = null,
    responseSchema: FunctionSchema? = null
)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### description

```
val description: String
```

human-readable description of what the tool does

### name

```
val name: String
```

the name of the function to call

### parameters

```
val parameters: FunctionSchema?
```

the schema describing the parameters this function accepts

### responseSchema

```
val responseSchema: FunctionSchema?
```

the schema describing the expected output of this function