# Function generateATL

- generateATL(
  data: {
  tier: "1" | "2" | "3" | "4";
  source: string;
  user: string;
  sanitized: boolean;
  rep?: number;
  },
  ): string

  Generates an Agent Trust Label string from structured data.

  #### Parameters

  - data: {
    tier: "1" | "2" | "3" | "4";
    source: string;
    user: string;
    sanitized: boolean;
    rep?: number;
    }

  #### Returns string

  #### Example

      generateATL({ tier: '3', source: 'github-comment', user: 'octocat', sanitized: true })
      // => "[ATL:tier=3,source=github-comment,user=octocat,sanitized=true]"

  - Defined in packages/nexus-agents/src/security/firewall/agent-trust-labels.ts:29