* Advanced and/or unresectable biliary tract cancer (BTC)
* Hepatocellular carcinoma (HCC) not amenable to locoregional therapy
* Locally advanced unresectable or metastatic gastroesophageal cancer
Has received prior therapy for the cancer.
Has recovered from any side effects due to previous cancer treatment
You may not be if
Has a history of (noninfectious) interstitial lung disease (ILD) or pneumonitis that required steroids, or has current ILD or pneumonitis, and/or suspected ILD or pneumonitis that cannot be ruled out by standard diagnostic assessments at Screening
Has clinically severe respiratory compromise (based on the investigator's assessment) resulting from intercurrent pulmonary illnesses
Has evidence of any leptomeningeal disease
Has clinically significant corneal disease
Has uncontrolled, significant cardiovascular disease or cerebrovascular disease
Has evidence of ongoing uncontrolled systemic bacterial, fungal, or viral infection