---
schema_version: "1"
id: e8db298b1ba4a4fe3a581664fe0ce0c1f4223fc98fa67e296cd548bd1bea03d9
title: A2A Prompt Decorator Policy
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/1.13/policies-included-a2a-prompt-decorator.md
canonical_url: https://docs.mulesoft.com/gateway/1.13/policies-included-a2a-prompt-decorator
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 6cdffc41c594152942b669e56fa39acd5a348eb4282a45e08886b4db84305518
description: MuleSoft Documentation Site
release: "1.13"
latest: false
---
---
product: Omni Gateway
version: 1.13
keywords: api gateway, flex gateway, gateway, policy
---

# A2A Prompt Decorator Policy

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col></colgroup><tbody><tr><td><p><strong>Policy Name</strong></p></td><td><p>A2A Prompt Decorator</p></td></tr><tr><td><p><strong>Summary</strong></p></td><td><p>Decorates prompts with context information</p></td></tr><tr><td><p><strong>Category</strong></p></td><td><p>A2A</p></td></tr><tr><td><p><strong>First Omni Gateway version available</strong></p></td><td><p>v1.9.3</p></td></tr><tr><td><p><strong>Release Notes</strong></p></td><td><p><a href="https://docs.mulesoft.com/release-notes/gateway/policies/a2a-prompt-decorator-release-notes">A2A Prompt Decorator</a></p></td></tr><tr><td><p><strong>Returned Status Codes</strong></p></td><td><p>No return codes exist for this policy.</p></td></tr></tbody></table>

> [!NOTE] This policy supports Agent2Agent Protocol (A2A) version v0.3.0. To learn more about A2A
> versions, see [A2A Releases](https://github.com/a2aproject/A2A/releases).

## Summary

The A2A Prompt Decorator policy injects additional content into provided prompts before they are
sent to the upstream server. You can specify the content to inject either as a DataWeave string
parameter or by referencing a file. Additionally, you can use a DataWeave expression to filter which
requests should have prompts decorated.

## Configuring Policy Parameters

### Omni Gateway Local Mode

The A2A Prompt Decorator policy isn’t supported in Local Mode.

### Managed Omni Gateway and Omni Gateway Connected Mode

When you apply the policy from the UI, the following parameters are displayed:

<table><colgroup><col> <col></colgroup><thead><tr><th>Element</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p>Text Decorators</p></div></div></td><td><div><div><p>List of text decorations you want to add to the prompts.</p></div></div></td></tr><tr><td><div><div><p>Prompt Text</p></div></div></td><td><div><div><p>DataWeave Expression that generates the prompt text injected into the request. For example: <code>#['Use Imperial metric units']</code>.</p></div></div></td></tr><tr><td><div><div><p>Condition</p></div></div></td><td><div><div><p>DataWeave Expression that filters which prompts to decorate. For example: <code>#[attributes.headers['id']==1]</code>.</p></div></div></td></tr><tr><td><div><div><p>File Decorators</p></div></div></td><td><div><div><p>List of file decorations to add to the prompts.</p></div></div></td></tr><tr><td><div><div><p>Condition</p></div></div></td><td><div><div><p>DataWeave Expression that filters which prompts to decorate. For example: <code>#[attributes.headers['id']==1]</code>.</p></div></div></td></tr><tr><td><div><div><p>File Name</p></div></div></td><td><div><div><p>DataWeave Expression with the File Name. For example: <code>#['Decorator name']</code>.</p></div></div></td></tr><tr><td><div><div><p>File Mime Type</p></div></div></td><td><div><div><p>DataWeave Expression with the Mime Type of the file to inject. For example: <code>#['application/json']</code>.</p></div></div></td></tr><tr><td><div><div><p>File Source</p></div></div></td><td><div><div><p>Select <strong>Base64</strong> if the file Content is base64-encoded data, or <strong>Uri</strong> if the file Content is a URL to an external file.</p></div></div></td></tr><tr><td><div><div><p>Content</p></div></div></td><td><div><div><p>DataWeave Expression containing either base64-encoded file content or a URL to download the content file. For example: #['https://domain/file-location'] or #['QmFzZTY0IGVuY29kZWQgZmlsZSBjb250ZW50'].</p></div></div></td></tr></tbody></table>
