# Function extractStringArrayField

- extractStringArrayField(
  payload: Record<string, unknown>,
  field: string,
  ): string[]

  Extracts a string array field from a payload object safely.

  #### Parameters

  - payload: Record<string, unknown>

    The payload object to extract from

  - field: string

    The field name to extract

  #### Returns string[]

  The string array or empty array if not found/invalid

  - Defined in packages/nexus-agents/src/agents/observability/orchestration-observer-helpers.ts:73