> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ApplyPatchEngineEnum - Go SDK

> ApplyPatchEngineEnum type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

Which apply\_patch engine to use. "auto" (default) uses native passthrough when the endpoint advertises native apply\_patch support, otherwise falls back to OpenRouter's HITL validator. "native" forces native passthrough — when the endpoint does not support native, the request falls back to HITL. "openrouter" always runs the HITL validator. Native passthrough streams the diff incrementally via `apply_patch_call_operation_diff.delta` events; HITL buffers the diff for atomic delivery as a single delta.

## Example Usage

```go lines theme={null}
import (
	"github.com/OpenRouterTeam/go-sdk/models/components"
)

value := components.ApplyPatchEngineEnumAuto

// Open enum: custom values can be created with a direct type cast
custom := components.ApplyPatchEngineEnum("custom_value")
```

## Values

| Name                             | Value      |
| -------------------------------- | ---------- |
| `ApplyPatchEngineEnumAuto`       | auto       |
| `ApplyPatchEngineEnumNative`     | native     |
| `ApplyPatchEngineEnumOpenrouter` | openrouter |
