# Function extractStringField

- extractStringField(payload: Record<string, unknown>, field: string): string

  Extracts a string 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 value or empty string if not found/invalid

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