func init()

in responses/response.go [1908:1957]


func init() {
	apijson.RegisterUnion[ResponseComputerToolCallActionUnionParam](
		"type",
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionClickParam{}),
			DiscriminatorValue: "click",
		},
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionDoubleClickParam{}),
			DiscriminatorValue: "double_click",
		},
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionDragParam{}),
			DiscriminatorValue: "drag",
		},
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionKeypressParam{}),
			DiscriminatorValue: "keypress",
		},
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionMoveParam{}),
			DiscriminatorValue: "move",
		},
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionScreenshotParam{}),
			DiscriminatorValue: "screenshot",
		},
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionScrollParam{}),
			DiscriminatorValue: "scroll",
		},
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionTypeParam{}),
			DiscriminatorValue: "type",
		},
		apijson.UnionVariant{
			TypeFilter:         gjson.JSON,
			Type:               reflect.TypeOf(ResponseComputerToolCallActionWaitParam{}),
			DiscriminatorValue: "wait",
		},
	)
}