# AzurePromptAgentResource Properties

- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Type: [AzurePromptAgentResource](/reference/api/csharp/aspire.hosting.foundry/azurepromptagentresource.md)
- Kind: `Properties`
- Members: `8`

Represents a Microsoft Foundry prompt agent resource that is provisioned on Azure.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/PromptAgent/AzurePromptAgentResource.cs#L165)

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Description

- Name: `Description`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/PromptAgent/AzurePromptAgentResource.cs)

Gets or sets a description of the agent.

```csharp
public string Description { get; set; }
```

## Instructions

- Name: `Instructions`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/PromptAgent/AzurePromptAgentResource.cs)

Gets or sets the system instructions for the agent.

```csharp
public string? Instructions { get; set; }
```

## Metadata

- Name: `Metadata`
- Modifiers: `get; init`
- Returns: `IDictionary<string, string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/PromptAgent/AzurePromptAgentResource.cs)

Gets the metadata to associate with the agent.

```csharp
public IDictionary<string, string> Metadata { get; init; }
```

## Model

- Name: `Model`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/PromptAgent/AzurePromptAgentResource.cs)

Gets or sets the model deployment name used by this agent.

```csharp
public string Model { get; set; }
```

## Project

- Name: `Project`
- Modifiers: `get`
- Returns: [AzureCognitiveServicesProjectResource](/reference/api/csharp/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/PromptAgent/AzurePromptAgentResource.cs#L113)

Gets the parent Foundry project resource.

```csharp
public AzureCognitiveServicesProjectResource Project { get; }
```

## Tools

- Name: `Tools`
- Modifiers: `get`
- Returns: [IReadOnlyList<IFoundryTool>](/reference/api/csharp/aspire.hosting.foundry/ifoundrytool.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/PromptAgent/AzurePromptAgentResource.cs#L143)

Gets the list of tool resources attached to this agent.

```csharp
public IReadOnlyList<IFoundryTool> Tools { get; }
```

## ATS metadata

### Ignored by ATS

- Excluded from automatic Polyglot export.

## Version

- Name: `Version`
- Modifiers: `get`
- Returns: `StaticValueProvider<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/PromptAgent/AzurePromptAgentResource.cs#L137)

Once deployed, the version that is assigned to this prompt agent.

```csharp
public StaticValueProvider<string> Version { get; }
```
