# Function isOk

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

- isOk<T, E>(result: Result<T, E>): result is { ok: true; value: T }

  Type guard to check if a Result is in the Ok state.

  #### Type Parameters

  - T

    The success value type

  - E

    The error value type

  #### Parameters

  - result: Result<T, E>

    The Result to check

  #### Returns result is { ok: true; value: T }

  True if the Result is Ok

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