in responses/response.go [4276:4297]
func (u ResponseInputItemUnionParam) GetID() *string {
if vt := u.OfOutputMessage; vt != nil {
return (*string)(&vt.ID)
} else if vt := u.OfFileSearchCall; vt != nil {
return (*string)(&vt.ID)
} else if vt := u.OfComputerCall; vt != nil {
return (*string)(&vt.ID)
} else if vt := u.OfComputerCallOutput; vt != nil && vt.ID.IsPresent() {
return &vt.ID.Value
} else if vt := u.OfWebSearchCall; vt != nil {
return (*string)(&vt.ID)
} else if vt := u.OfFunctionCall; vt != nil && vt.ID.IsPresent() {
return &vt.ID.Value
} else if vt := u.OfFunctionCallOutput; vt != nil && vt.ID.IsPresent() {
return &vt.ID.Value
} else if vt := u.OfReasoning; vt != nil {
return (*string)(&vt.ID)
} else if vt := u.OfItemReference; vt != nil {
return (*string)(&vt.ID)
}
return nil
}