# CodeInterpreterToolResource

- 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 write and run Python code in a sandboxed environment for data analysis, math, and chart generation.

## Remarks

This tool requires no Azure provisioning or project connections.
It is automatically available in all Foundry projects.

## Definition

```go
type CodeInterpreterToolResource interface {
    Resource
}
```

## Embeds

- `Resource`
