# Function unwrap

Core exports - Types, Result<T,E>, errors, and logger Split from index.ts for file size compliance (Issue #285)

- unwrap<T, E>(result: Result<T, E>): T

  Extracts the success value from a Result.

  #### Type Parameters

  - T

    The success value type

  - E

    The error value type

  #### Parameters

  - result: Result<T, E>

    The Result to unwrap

  #### Returns T

  The success value

  #### Throws

  Throws an Error wrapping the error value if the Result is Err

  - Defined in packages/nexus-agents/src/core/result.ts:119