Skip to content
DocsTry Aspire
DocsTry

CodeInterpreterToolResource Constructors

ClassConstructors1 member
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.
Constructor(string, AzureCognitiveServicesProjectResource)Section titled Constructor(string, AzureCognitiveServicesProjectResource)
Creates a new instance of the CodeInterpreterToolResource class.
public sealed class CodeInterpreterToolResource
{
public CodeInterpreterToolResource(
string name,
AzureCognitiveServicesProjectResource project)
{
// ...
}
}
namestringThe name of the tool resource.
projectAzureCognitiveServicesProjectResourceThe parent Foundry project resource.