ApplyPatchEngineEnum - Go SDK

ApplyPatchEngineEnum type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

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

1import (
2 "github.com/OpenRouterTeam/go-sdk/models/components"
3)
4
5value := components.ApplyPatchEngineEnumAuto
6
7// Open enum: custom values can be created with a direct type cast
8custom := components.ApplyPatchEngineEnum("custom_value")

Values

NameValue
ApplyPatchEngineEnumAutoauto
ApplyPatchEngineEnumNativenative
ApplyPatchEngineEnumOpenrouteropenrouter