# FunctionToolResource

- Module: [Aspire.Hosting.Foundry](/reference/api/go/aspire.hosting.foundry.md)
- Version: `17.0.0-preview.1.26565.2`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

A Foundry tool resource that enables an agent to call a user-defined function.

## Remarks

Function calling tools allow agents to invoke functions defined by the application.
The agent decides when to call the function based on the function name, description,
and parameter schema, then returns a structured function call request that the
application handles.

## Definition

```go
type FunctionToolResource interface {
    Resource
}
```

## Embeds

- `Resource`
